Mod: Convert from dynamic to static casts (#20452)

This commit is contained in:
Jonathan Zirkle
2025-03-31 09:17:51 -04:00
committed by GitHub
parent f09e5e03a9
commit 4ca7d1a297
2 changed files with 6 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ bool StdCmdMeasure::isActive()
Gui::MDIView* view = Gui::getMainWindow()->activeWindow();
if (view && view->isDerivedFrom<Gui::View3DInventor>()) {
Gui::View3DInventorViewer* viewer = dynamic_cast<Gui::View3DInventor*>(view)->getViewer();
Gui::View3DInventorViewer* viewer = static_cast<Gui::View3DInventor*>(view)->getViewer();
return !viewer->isEditing();
}
return false;