aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/macgui/mactext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index 5963d1ed67..14eb411a23 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -392,7 +392,7 @@ int MacText::getLineWidth(int line, bool enforce) {
}
if (!hastext)
- height -= 3;
+ height = height > 3 ? height - 3 : 0;
_textLines[line].width = width;
_textLines[line].height = height;