Skip to content

Commit

Permalink
Fix 12755 (FreeCAD#13802)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlachyJoe authored and adrianinsaval committed May 6, 2024
1 parent cc0a5da commit edb1c38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,12 @@ void DSHArcController::addConstraints()
}
}
else { // Valid diagnosis. Must check which constraints may be added.

// if no curve exists a crash occurs #12755
if (firstCurve < 0) {
return;
}

auto startpointinfo = handler->getPointInfo(GeoElementId(firstCurve, pos1));

if (x0set && startpointinfo.isXDoF()) {
Expand Down

0 comments on commit edb1c38

Please sign in to comment.