mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 05:13:06 +00:00
Merge branch 'mfwnotext' into 'master'
Fix #8202 (probably) Closes #8202 See merge request OpenMW/openmw!4422
This commit is contained in:
commit
64fdf72c4c
1 changed files with 4 additions and 2 deletions
|
|
@ -816,8 +816,10 @@ namespace MWGui
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
button->setCaption(oldCaption);
|
button->setCaption(oldCaption);
|
||||||
button->getSubWidgetText()->setWordWrap(true);
|
button->setTextAlign(MyGUI::Align::Left);
|
||||||
button->getSubWidgetText()->setTextAlign(MyGUI::Align::Left);
|
MyGUI::ISubWidgetText* text = button->getSubWidgetText();
|
||||||
|
if (text != nullptr)
|
||||||
|
text->setWordWrap(true);
|
||||||
button->setSize(oldSize);
|
button->setSize(oldSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue