Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit 2afdd58

Browse files
3x380Vchennes
authored andcommitted
TechDraw: Ensure tolerance font size is > 0
1 parent e657ce9 commit 2afdd58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mod/TechDraw/Gui/QGIViewDimension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ void QGIDatumLabel::setFont(QFont font)
466466
QFont tFont(font);
467467
double fontSize = font.pixelSize();
468468
double tolAdj = getTolAdjust();
469-
tFont.setPixelSize((int)(fontSize * tolAdj));
469+
tFont.setPixelSize(std::max(1, (int)(fontSize * tolAdj)));
470470
m_tolTextOver->setFont(tFont);
471471
m_tolTextUnder->setFont(tFont);
472472
updateFrameRect();

0 commit comments

Comments
 (0)