head 1.2; access; symbols pkgsrc-2018Q1:1.1.0.12 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.10 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.8 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.4 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.2 pkgsrc-2017Q1-base:1.1; locks; strict; comment @// @; 1.2 date 2018.04.05.16.49.16; author bouyer; state dead; branches; next 1.1; commitid sNYK9SxDdyX61hxA; 1.1 date 2017.02.08.00.05.55; author joerg; state Exp; branches; next ; commitid vThdbjZMfBl405Fz; desc @@ 1.2 log @Update to 20180405. Changes: support sparse polars with automatic interpolation ADD cursor bar on the plot to show where we are in time Add option cursor route enable/disable Add wind barbs on the weather route. Updated translations Lots of UI improvements and general bug fixes @ text @$NetBSD: patch-src_Polar.cpp,v 1.1 2017/02/08 00:05:55 joerg Exp $ Pointers are not relative to 0, so check correct variable. --- src/Polar.cpp.orig 2017-01-08 19:55:10.199446917 +0000 +++ src/Polar.cpp @@@@ -180,7 +180,7 @@@@ Polar::Polar() #define MAX_WINDSPEEDS_IN_TABLE 200 #define MESSAGE(S) (S + wxString(_T("\n")) + wxString::FromUTF8(filename) \ - + (line > 0 ? (_(" line ") + wxString::Format(_T("%d"), linenum)) : _T(""))) + + (linenum > 0 ? (_(" line ") + wxString::Format(_T("%d"), linenum)) : _T(""))) #define PARSE_WARNING(S) do { if(message.empty()) message = MESSAGE(S); } while (0) #define PARSE_ERROR(S) if(message.empty()) do { message = _("Boat polar failed") + wxString(_T("\n")) \ + MESSAGE(S); goto failed; } while (0) @ 1.1 log @Don't order pointer, but check the value intended instead. Bump revision. @ text @d1 1 a1 1 $NetBSD$ @