Update src/Mod/TechDraw/Gui/QGCustomText.cpp by compacting boundingRect()

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
aapo-aapo
2020-11-27 22:15:16 +02:00
committed by wwmayer
parent f2e91ec488
commit 4ed3c99e3e

View File

@@ -195,13 +195,11 @@ QRectF QGCustomText::boundingRect() const
{
if (toPlainText().isEmpty()) {
return QRectF();
}
if (tightBounding) {
} else if (tightBounding) {
return tightBoundingRect();
} else {
return QGraphicsTextItem::boundingRect();
}
return QGraphicsTextItem::boundingRect();
}
QRectF QGCustomText::tightBoundingRect() const
@@ -254,4 +252,3 @@ void QGCustomText::makeMark(Base::Vector3d v)
makeMark(v.x,v.y);
}