1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 21:09:42 +00:00
This commit is contained in:
Alexei Kotov 2024-10-23 22:23:28 +03:00
parent 462e118e0d
commit 13cca461f2

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