From 648f5e6d5b9e6fecb805a771e40c18f60fe5ad1e Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 6 Aug 2019 17:55:43 +0800 Subject: [PATCH] Gui: fix auto view switching of editing object --- src/Gui/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index 9d417ffab0..ebdbb6130e 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -374,7 +374,7 @@ bool Document::setEdit(Gui::ViewProvider* p, int ModNum, const char *subname) View3DInventor *activeView = dynamic_cast(getActiveView()); // if the currently active view is not the 3d view search for it and activate it if (!activeView) { - activeView = dynamic_cast(getViewOfViewProvider(vp)); + activeView = dynamic_cast(setActiveView(vp)); if(!activeView){ FC_ERR("cannot edit without active view"); return false;