diff options
Diffstat (limited to 'profile-widget/ruleritem.cpp')
-rw-r--r-- | profile-widget/ruleritem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/ruleritem.cpp b/profile-widget/ruleritem.cpp index c5712de54..dc2c308e3 100644 --- a/profile-widget/ruleritem.cpp +++ b/profile-widget/ruleritem.cpp @@ -127,7 +127,7 @@ void RulerItem2::recalculate() const qreal diff = begin.x() + textItem->boundingRect().width(); // clamp so that the text doesn't go out of the screen to the right if (diff > view->width()) { - begin.setX(begin.x() - (diff - view->width())); + begin.setX(lrint(begin.x() - (diff - view->width()))); tgtX = mapFromScene(view->mapToScene(begin)).x(); } // always show the text bellow the lowest of the start and end points |