Skip to content

Commit

Permalink
TechDraw: Ensure tolerance font size is > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
3x380V authored and chennes committed Dec 16, 2024
1 parent e657ce9 commit 2afdd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/QGIViewDimension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void QGIDatumLabel::setFont(QFont font)
QFont tFont(font);
double fontSize = font.pixelSize();
double tolAdj = getTolAdjust();
tFont.setPixelSize((int)(fontSize * tolAdj));
tFont.setPixelSize(std::max(1, (int)(fontSize * tolAdj)));
m_tolTextOver->setFont(tFont);
m_tolTextUnder->setFont(tFont);
updateFrameRect();
Expand Down

0 comments on commit 2afdd58

Please sign in to comment.