Skip to content

Commit e9cc706

Browse files
committed
fix bug 'night highligt problem' #157
1 parent c9c7254 commit e9cc706

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Course Generator is a software which can estimate your time in road running race
44

55
![Course Generator Main window](https://imgur.com/4tM7kUR.png)
66

7-
## Status : Version 4.3.0 (stable)
7+
## Status : Version 4.3.1 (stable)
88

99
## History
1010
I created Course Generator in 2008 for my first 100 km ultra trail. Since then, I added a lot of features and it has been used by a lot of french ultra-runner. Up to the version 3.88 it has been written in C# and now java is used in order to be cross platform (Windows, Mac OS and Linux) and multilingual.

build/course_generator.jar

21 Bytes
Binary file not shown.

src/course_generator/frmMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
public class frmMain extends javax.swing.JFrame {
165165
private static final long serialVersionUID = 6484405417503538528L;
166166

167-
private final static String Version = "4.3.0";
167+
private final static String Version = "4.3.1";
168168

169169
public static boolean inEclipse = false;
170170
public static CgLog log = null;

src/course_generator/maps/JPanelMaps.java

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,15 @@ public void RefreshTrack(TrackData tdata, boolean zoom2fit) {
573573
found = false;
574574
}
575575
}
576+
577+
//-- Finish the night polyline
578+
polyLineNight = new MapPolyLine(routeNight);
579+
polyLineNight.setColor(cl_Transp);
580+
polyLineNight.setStroke(new BasicStroke(Settings.NightTrackWidth));
581+
// -- Add the polyline to the viewer
582+
MapViewer.addMapPolygon(polyLineNight);
576583

584+
577585
// -- Create the tracks (over the night tracks if necessary)
578586
cmpt = 0;
579587
List<Coordinate> routeNormal = new ArrayList<Coordinate>();
@@ -612,7 +620,7 @@ public void RefreshTrack(TrackData tdata, boolean zoom2fit) {
612620
last_diff = r.getDiff();
613621
}
614622

615-
// -- Polyline creation
623+
//-- Finish the polyline
616624
MapPolyLine polyLineNormal = new MapPolyLine(routeNormal);
617625
// -- Set the line color
618626
cl = getDiffColor(last_diff);
@@ -625,19 +633,7 @@ public void RefreshTrack(TrackData tdata, boolean zoom2fit) {
625633
// -- Add the polyline to the viewer
626634
MapViewer.addMapPolygon(polyLineNormal);
627635

628-
/*
629-
*
630-
* // -- Add the last polyline MapPolyLine polyLineEnd = new
631-
* MapPolyLine(routeNormal); // -- Set the line color
632-
* cl=getDiffColor(last_diff); cl= new Color(cl.getRed(), cl.getGreen(),
633-
* cl.getBlue(), Settings.NormalTrackTransparency);
634-
*
635-
* polyLineEnd.setColor(cl);
636-
*
637-
* // -- Set the stroke polyLineEnd.setStroke(new
638-
* BasicStroke(Settings.NormalTrackWidth)); //CgConst.TRACK_NORMAL_TICKNESS));
639-
* // -- Upddate the viewer MapViewer.addMapPolygon(polyLineEnd);
640-
*/
636+
641637
// -- Zoom to display the track
642638
if (zoom2fit)
643639
MapViewer.setDisplayToFitMapPolygons();

tools/CG_Install_Script.nsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# These three must be integers
1414
!define VERSIONMAJOR 4
1515
!define VERSIONMINOR 3
16-
!define VERSIONBUILD 0
16+
!define VERSIONBUILD 1
1717
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs"
1818
# It is possible to use "mailto:" links in here to open the email client
1919
!define HELPURL "https://techandrun.com/course-generator/" # "Support Information" link
@@ -31,7 +31,7 @@ LicenseData "..\gpl-3.0.txt"
3131
# This will be in the installer/uninstaller's title bar
3232
Name "${APPNAME}"
3333
Icon "..\build\cg.ico"
34-
# outFile "Course_Generator_install_4_3_0.exe"
34+
#
3535
outFile "..\distrib\Course_Generator_install_${VERSIONMAJOR}_${VERSIONMINOR}_${VERSIONBUILD}.exe"
3636

3737
!include LogicLib.nsh

0 commit comments

Comments
 (0)