Skip to content

Commit 89aa596

Browse files
yiman919phkahler
authored andcommitted
add missing else statement in Slvs_MarkDragged_check
1 parent 8f37db9 commit 89aa596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/slvs/lib.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,9 @@ void Slvs_MarkDragged(Slvs_Entity ptA) {
845845
hParam p = hParam { ptA.param[i] };
846846
dragged.insert(p);
847847
}
848+
} else {
849+
SolveSpace::Platform::FatalError("Invalid entity for marking dragged");
848850
}
849-
SolveSpace::Platform::FatalError("Invalid entity for marking dragged");
850851
}
851852

852853
Slvs_SolveResult Slvs_SolveSketch(uint32_t shg, Slvs_hConstraint **bad = nullptr)

0 commit comments

Comments
 (0)