Fix bad downcast.

This commit is contained in:
Christian Speckner 2024-08-27 21:14:41 +02:00
parent a0873b627b
commit ca77a007dc
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ void BrowserDialog::show(GuiObject* parent, const GUI::Font& font,
{ {
uInt32 w = 0, h = 0; uInt32 w = 0, h = 0;
const auto* parentDialog = static_cast<Dialog*>(parent); const auto* parentDialog = dynamic_cast<Dialog*>(parent);
if (parentDialog) { if (parentDialog) {
parentDialog->getDynamicBounds(w, h); parentDialog->getDynamicBounds(w, h);
} else { } else {