GRAPHICS: MACGUI: Sanity check for empty lines

This commit is contained in:
Eugene Sandulenko 2019-12-26 17:47:58 +01:00
parent 40cb3b8f92
commit 97abe323c4

View file

@ -392,7 +392,7 @@ int MacText::getLineWidth(int line, bool enforce) {
} }
if (!hastext) if (!hastext)
height -= 3; height = height > 3 ? height - 3 : 0;
_textLines[line].width = width; _textLines[line].width = width;
_textLines[line].height = height; _textLines[line].height = height;