openbsd-ports/geo/qlandkarte/patches/patch-src_CToolViewLog_cpp

15 lines
831 B
Plaintext

$OpenBSD: patch-src_CToolViewLog_cpp,v 1.2 2008/03/27 00:36:46 pvalchev Exp $
--- src/CToolViewLog.cpp.orig Wed Feb 13 02:15:18 2008
+++ src/CToolViewLog.cpp Sun Mar 23 22:35:43 2008
@@ -120,7 +120,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 {