diff options
-rw-r--r-- | graphics/macgui/mactext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 244988b3d6..69e2dce932 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -417,7 +417,8 @@ void MacText::clearText() { _textLines.clear(); _str.clear(); - _surface->clear(_bgcolor); + if (_surface) + _surface->clear(_bgcolor); recalcDims(); } |