Merge branch 'mfwnotext' into 'master'

Fix #8202 (probably)

Closes #8202

See merge request OpenMW/openmw!4422
pull/3236/head
psi29a 2 months ago
commit 64fdf72c4c

@ -816,8 +816,10 @@ namespace MWGui
if (changed)
{
button->setCaption(oldCaption);
button->getSubWidgetText()->setWordWrap(true);
button->getSubWidgetText()->setTextAlign(MyGUI::Align::Left);
button->setTextAlign(MyGUI::Align::Left);
MyGUI::ISubWidgetText* text = button->getSubWidgetText();
if (text != nullptr)
text->setWordWrap(true);
button->setSize(oldSize);
}
}

Loading…
Cancel
Save