From 375ef2059273d437e8f44dd49de01827b5f9bf05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 23 Oct 2016 14:58:24 +0200 Subject: [PATCH] Fixed scale item print issue --- src/scaleitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scaleitem.cpp b/src/scaleitem.cpp index 15521488..c93e9982 100644 --- a/src/scaleitem.cpp +++ b/src/scaleitem.cpp @@ -61,7 +61,7 @@ void ScaleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, for (int i = 0; i <= SEGMENTS; i++) { QString label = QString::number(_length * i); br = fm.tightBoundingRect(label); - painter->drawText(_width * i - br.width()/2, br.height(), label); + painter->drawText(_width * i - br.width()/2, br.height() + 1, label); } painter->drawText(_width * SEGMENTS + PADDING, SCALE_HEIGHT + PADDING + br.height() + fm.descent(), units());