Skip to content

Commit

Permalink
Merge branch 'mfwnotext' into 'master'
Browse files Browse the repository at this point in the history
Fix #8202 (probably)

Closes #8202

See merge request OpenMW/openmw!4422
  • Loading branch information
psi29a committed Oct 28, 2024
2 parents 1dc1bfe + 13cca46 commit 64fdf72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/openmw/mwgui/dialogue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 64fdf72

Please sign in to comment.