Commit 14501b8a authored by thrust26's avatar thrust26
Browse files

Fixed exception when FatalEmulationError message was too short.

parent ecb6c7a5
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment