From faf445d7086b4bd2dc5498f855ee19cf0c1ef58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 22 Nov 2020 23:41:58 +0100 Subject: [PATCH] Fixed broken label bounding box computation --- src/GUI/axislabelitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/axislabelitem.cpp b/src/GUI/axislabelitem.cpp index f0bedfa9..9e7a42b5 100644 --- a/src/GUI/axislabelitem.cpp +++ b/src/GUI/axislabelitem.cpp @@ -16,7 +16,7 @@ void AxisLabelItem::setLabel(const QString& label, const QString &units) prepareGeometryChange(); QFontMetrics fm(_font); _label = QString("%1 [%2]").arg(label, units.isEmpty() ? "-" : units); - _labelBB = fm.tightBoundingRect(label); + _labelBB = fm.tightBoundingRect(_label); updateBoundingRect(); update(); }