diff --git a/src/gui/BrowserDialog.cxx b/src/gui/BrowserDialog.cxx index 0fa688d08..01e2fbcb3 100644 --- a/src/gui/BrowserDialog.cxx +++ b/src/gui/BrowserDialog.cxx @@ -119,7 +119,7 @@ void BrowserDialog::show(GuiObject* parent, const GUI::Font& font, { uInt32 w = 0, h = 0; - const auto* parentDialog = static_cast(parent); + const auto* parentDialog = dynamic_cast(parent); if (parentDialog) { parentDialog->getDynamicBounds(w, h); } else {