Skip to content

Commit

Permalink
fix displacement of constraint icons in sketch edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 14, 2016
1 parent 549236f commit 5013e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
Expand Up @@ -1342,7 +1342,7 @@ Base::Vector3d ViewProviderSketch::seekConstraintPosition(const Base::Vector3d &
const SoNode *constraint)
{
assert(edit);
Gui::MDIView *mdi = this->getEditingView();
Gui::MDIView *mdi = this->getViewOfNode(edit->EditRoot);
if (!(mdi && mdi->isDerivedFrom(Gui::View3DInventor::getClassTypeId())))
return Base::Vector3d(0, 0, 0);
Gui::View3DInventorViewer *viewer = static_cast<Gui::View3DInventor *>(mdi)->getViewer();
Expand Down

0 comments on commit 5013e89

Please sign in to comment.