1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-01 21:41:34 +00:00

Merge branch 'mfwnotext' into 'master'

Fix #8202 (probably)

Closes #8202

See merge request OpenMW/openmw!4422
This commit is contained in:
psi29a 2024-10-28 16:19:49 +00:00
commit 64fdf72c4c

View file

@ -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);
}
}