summaryrefslogtreecommitdiffstats
path: root/profile-widget/divetextitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/divetextitem.cpp')
-rw-r--r--profile-widget/divetextitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/divetextitem.cpp b/profile-widget/divetextitem.cpp
index 21a72624d..c64f231c2 100644
--- a/profile-widget/divetextitem.cpp
+++ b/profile-widget/divetextitem.cpp
@@ -88,7 +88,7 @@ void DiveTextItem::updateText()
if ((size = fnt.pixelSize()) > 0) {
// set in pixels - so the scale factor may not make a difference if it's too close to 1
size *= scale * printScale;
- fnt.setPixelSize(size);
+ fnt.setPixelSize(lrint(size));
} else {
size = fnt.pointSizeF();
size *= scale * printScale;