summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-06 11:49:49 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-06 11:50:23 (GMT)
commit63dc14328a38e901ae4d86af3babbde5c1c78415 (patch)
treedd0e0cc5abd22afaf3b0352fc3a8822eacf2f632
parent94a289443f792285cf5f8448d7bb19ce047b976d (diff)
Add a comment that loss of precision is intended.
-rw-r--r--src/lib/marble/layers/PlacemarkLayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/marble/layers/PlacemarkLayer.cpp b/src/lib/marble/layers/PlacemarkLayer.cpp
index c52d331..bec4d36 100644
--- a/src/lib/marble/layers/PlacemarkLayer.cpp
+++ b/src/lib/marble/layers/PlacemarkLayer.cpp
@@ -75,6 +75,7 @@ bool PlacemarkLayer::render( GeoPainter *geoPainter, ViewportParams *viewport,
VisiblePlacemark *const mark = *visit;
+ // Intentionally converting positions from floating point to pixel aligned screen grid below
QRect labelRect( mark->labelRect().toRect() );
QPoint symbolPos(mark->symbolPosition().toPoint());