TechDraw: InsertView switch the MDI to page when triggered.

This commit is contained in:
PaddleStroke
2024-04-02 13:58:56 +02:00
parent 246496eed1
commit b6d8bb094a
3 changed files with 15 additions and 1 deletions

View File

@@ -314,6 +314,14 @@ void CmdTechDrawView::activated(int iMsg)
}
std::string PageName = page->getNameInDocument();
// switch to the page if it's not current active window
auto* vpp = dynamic_cast<ViewProviderPage*>
(Gui::Application::Instance->getViewProvider(page));
if (vpp) {
vpp->switchToMdiViewPage();
}
//set projection direction from selected Face
//use first object with a face selected
std::vector<App::DocumentObject*> shapes, xShapes;