MACGUI: Do not recalc empty text
This commit is contained in:
parent
8bb261abba
commit
0bbfe624be
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue