From 34e877bc1d0e28df9c15ae73cc34461acd845d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20B=C3=A4hr?= Date: Fri, 1 Sep 2023 22:52:02 +0200 Subject: [PATCH] Sketcher: fix docs for solve(..) Since the docstring was initially written, an additional error code was added. --- src/Mod/Sketcher/App/SketchObject.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.h b/src/Mod/Sketcher/App/SketchObject.h index fb363b25df..beea95e75d 100644 --- a/src/Mod/Sketcher/App/SketchObject.h +++ b/src/Mod/Sketcher/App/SketchObject.h @@ -237,8 +237,12 @@ public: sketch and updates all dependent features When a solve only is necessary (e.g. DoF changed), solve() solves the sketch and updates the geometry (if updateGeoAfterSolving==true), but does not trigger any recompute. - @return 0 if no error, if error, the following codes in this order of priority: -4 if - overconstrained, -3 if conflicting, -1 if solver error, -2 if redundant constraints + @return 0 if no error, if error, the following codes in this order of priority: + -4 if overconstrained, + -3 if conflicting constraints, + -5 if malformed constraints, + -1 if solver error, + -2 if redundant constraints */ int solve(bool updateGeoAfterSolving = true); /// set the datum of a Distance or Angle constraint and solve