Skip to content

Commit

Permalink
Update src/Mod/TechDraw/Gui/QGCustomText.cpp by compacting boundingRe…
Browse files Browse the repository at this point in the history
…ct()

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
  • Loading branch information
2 people authored and wwmayer committed Dec 1, 2020
1 parent f2e91ec commit 4ed3c99
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Mod/TechDraw/Gui/QGCustomText.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -254,4 +252,3 @@ void QGCustomText::makeMark(Base::Vector3d v)
makeMark(v.x,v.y);
}


0 comments on commit 4ed3c99

Please sign in to comment.