TechDraw: Replace dynamic_cast with qobject_cast

This commit is contained in:
Kacper Donat
2025-04-07 20:00:03 +02:00
committed by Benjamin Nauck
parent 6e2583cdcd
commit 216166d853
6 changed files with 9 additions and 9 deletions

View File

@@ -353,7 +353,7 @@ TechDraw::DrawPage* DrawGuiUtil::findPage(Gui::Command* cmd, bool findAny)
// multiple pages in document, use active page if there is one
auto* w = Gui::getMainWindow();
auto* mv = w->activeWindow();
auto* mvp = dynamic_cast<MDIViewPage*>(mv);
auto* mvp = qobject_cast<MDIViewPage*>(mv);
if (mvp) {
QGSPage* qp = mvp->getViewProviderPage()->getQGSPage();
return qp->getDrawPage();