Fixed exception when FatalEmulationError message was too short.

This commit is contained in:
thrust26 2018-12-07 22:02:16 +01:00
parent ecb6c7a508
commit 14501b8a94
1 changed files with 2 additions and 0 deletions

View File

@ -725,6 +725,8 @@ void Dialog::addOKCancelBGroup(WidgetArray& wid, const GUI::Font& font,
font.getStringWidth(cancelText))) + BTN_BORDER);
int buttonHeight = font.getLineHeight() + 4;
_w = std::max(HBORDER * 2 + buttonWidth * 2 + BUTTON_GAP, _w);
#ifndef BSPF_MAC_OSX
addOKWidget(new ButtonWidget(this, font, _w - 2 * buttonWidth - HBORDER - BUTTON_GAP,
_h - buttonHeight - VBORDER, buttonWidth, buttonHeight, okText, GuiObject::kOKCmd));