Update src/Mod/TechDraw/Gui/QGCustomText.cpp by compacting boundingRect()
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user