From c63e5e45291a9754e8dc11d84f1d478eb22582b1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 27 Dec 2021 19:26:42 +0100 Subject: [PATCH] Fixed an additional issue in the ROM selection dialog. --- es-core/src/guis/GuiMsgBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/guis/GuiMsgBox.cpp b/es-core/src/guis/GuiMsgBox.cpp index c8e9cd909..37d8bdcbc 100644 --- a/es-core/src/guis/GuiMsgBox.cpp +++ b/es-core/src/guis/GuiMsgBox.cpp @@ -122,7 +122,7 @@ void GuiMsgBox::changeText(const std::string& newText) width = std::max(mButtonGrid->getSize().x, mMsg->getSize().x); width = std::max(width, minWidth); } - else { + else if (mButtonGrid->getSize().x > width) { width = mButtonGrid->getSize().x; }