aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-02 11:20:35 +0200
committerEugene Sandulenko2017-08-04 21:54:19 +0200
commita95899c1b65c1558e4f23ab9cbdb315270a152c2 (patch)
treef5b38f15de487f7e7c7dcf391eb884d1115f64d8 /graphics
parentcb48575c91071421f89ea394094072995a6e2c9b (diff)
downloadscummvm-rg350-a95899c1b65c1558e4f23ab9cbdb315270a152c2.tar.gz
scummvm-rg350-a95899c1b65c1558e4f23ab9cbdb315270a152c2.tar.bz2
scummvm-rg350-a95899c1b65c1558e4f23ab9cbdb315270a152c2.zip
GRAPHICS: MACGUI: Fix formatting of the first added text in MacText
Diffstat (limited to 'graphics')
-rw-r--r--graphics/macgui/mactext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index 3c410f6529..75d41e08ea 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -74,7 +74,8 @@ MacText::MacText(Common::String s, MacWindowManager *wm, const MacFont *macFont,
_currentFormatting = _defaultFormatting;
- splitString(_str);
+ if (!_str.empty())
+ splitString(_str);
recalcDims();