summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-01-17 22:40:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2020-01-17 22:40:22 +0100
commit44487703c264dfef094631614717ba5ce22f7a37 (patch)
tree6bfdbcfc71c88a81a4f5e1c3da2f57f555792d5d
parent3851ff31241d8e727b65a0f27dddc9ccc2f694fc (diff)
spline/widget: fix plot label offset
Issue: #988
-rw-r--r--spline/spline-widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp
index 2429ffc3..fb373c93 100644
--- a/spline/spline-widget.cpp
+++ b/spline/spline-widget.cpp
@@ -156,7 +156,7 @@ void spline_widget::drawBackground()
#endif
painter.drawText(QPointF(x - advance/2 - rect.left(),
- pixel_bounds.height() - rect.top() + rect.height()),
+ pixel_bounds.bottom() + metrics.lineSpacing()),
text);
}
}