MACGUI: Do not recalc empty text

This commit is contained in:
Eugene Sandulenko 2019-11-24 15:55:11 +01:00
parent 8bb261abba
commit 0bbfe624be

View file

@ -295,6 +295,9 @@ void MacText::render() {
}
void MacText::render(int from, int to) {
if (_textLines.empty())
return;
reallocSurface();
from = MAX<int>(0, from);
@ -373,6 +376,9 @@ void MacText::setInterLinear(int interLinear) {
}
void MacText::recalcDims() {
if (_textLines.empty())
return;
int y = 0;
_textMaxWidth = 0;