diff --git a/gui/widget.cpp b/gui/widget.cpp index 82007c588fa3..0e2fd248b1fc 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -245,16 +245,16 @@ void StaticTextWidget::setValue(int value) { } void StaticTextWidget::setLabel(const Common::String &label) { - if (_label != label) { - _label = label; - - // when changing the label, add the CLEARBG flag - // so the widget is completely redrawn, otherwise - // the new text is drawn on top of the old one. - setFlags(WIDGET_CLEARBG); - draw(); - clearFlags(WIDGET_CLEARBG); - } + if (_label != label) { + _label = label; + + // when changing the label, add the CLEARBG flag + // so the widget is completely redrawn, otherwise + // the new text is drawn on top of the old one. + setFlags(WIDGET_CLEARBG); + draw(); + clearFlags(WIDGET_CLEARBG); + } } void StaticTextWidget::setAlign(Graphics::TextAlign align) {