Skip to content

Commit

Permalink
fixes #4182: Segfault when clicking constraints from a different view…
Browse files Browse the repository at this point in the history
…port [skip ci]
  • Loading branch information
wwmayer committed Jan 11, 2020
1 parent 49e4e45 commit f97eb70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Mod/Sketcher/Gui/EditDatumDialog.cpp
Expand Up @@ -81,9 +81,7 @@ void EditDatumDialog::exec(bool atCursor)
}

Gui::MDIView *mdi = Gui::Application::Instance->activeDocument()->getActiveView();
Gui::View3DInventorViewer *viewer = static_cast<Gui::View3DInventor *>(mdi)->getViewer();

QDialog dlg(viewer->getGLWidget());
QDialog dlg(mdi);

Ui::InsertDatum ui_ins_datum;
ui_ins_datum.setupUi(&dlg);
Expand Down

0 comments on commit f97eb70

Please sign in to comment.