Sketcher: ViewProvider - fix crash due to invalidated geomety pointer
===================================================================== Finish checks with geometry pointer before calling initTemporaryMove(), as the pointer may change as a result of the solve() operation.
This commit is contained in:
committed by
abdullahtahiriyo
parent
56f3db079f
commit
6dc20d2b68
@@ -1231,8 +1231,6 @@ bool ViewProviderSketch::mouseMove(const SbVec2s &cursorPos, Gui::View3DInventor
|
||||
|
||||
}
|
||||
|
||||
getSketchObject()->initTemporaryMove(edit->DragCurve, Sketcher::none, false);
|
||||
|
||||
if (geo->getTypeId() == Part::GeomLineSegment::getClassTypeId() ||
|
||||
geo->getTypeId() == Part::GeomBSplineCurve::getClassTypeId()) {
|
||||
relative = true;
|
||||
@@ -1249,6 +1247,9 @@ bool ViewProviderSketch::mouseMove(const SbVec2s &cursorPos, Gui::View3DInventor
|
||||
xInit = 0;
|
||||
yInit = 0;
|
||||
}
|
||||
|
||||
getSketchObject()->initTemporaryMove(edit->DragCurve, Sketcher::none, false);
|
||||
|
||||
} else {
|
||||
Mode = STATUS_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user