openbsd-ports/geo/qlandkarte/patches/patch-src_CToolViewLog_cpp
pvalchev aa3149b5de qlandkarte-0.7.3, highlights:
- added ascent/descent delta on tracks
- fixed antialiasing bug (much better performance)
- fixed coordinates miscalculation bug
2008-07-07 17:39:24 +00:00

15 lines
831 B
Plaintext

$OpenBSD: patch-src_CToolViewLog_cpp,v 1.3 2008/07/07 17:39:24 pvalchev Exp $
--- src/CToolViewLog.cpp.orig Wed Jun 4 11:36:19 2008
+++ src/CToolViewLog.cpp Mon Jul 7 09:49:36 2008
@@ -111,7 +111,9 @@ void CToolViewLog::slotPosition(const CGarminLiveLog::
lblErrorHoriz->setText(QString("\261%1m").arg(pvt.eph/2,0,'f',0));
lblErrorVert->setText(QString("\261%1m").arg(pvt.epv/2,0,'f',0));
lblSpeed->setText(QString("%1km/h").arg(speed_km_h, 0, 'f', 1));
- lblHeading->setText(QString("%1\260T").arg(nearbyintf(heading),3,'f',0,'0'));
+ // XXX this is a bad hack
+ //lblHeading->setText(QString("%1\260T").arg(nearbyintf(heading),3,'f',0,'0'));
+ lblHeading->setText(QString("%1\260T").arg((int)heading+0.5,3,'f',0,'0'));
lblTime->setText(t.toString());
}
else {