From ca77a007dc434cef0e40a7401d59df0325cb9f7b Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Tue, 27 Aug 2024 21:14:41 +0200 Subject: [PATCH] Fix bad downcast. --- src/gui/BrowserDialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {