Sketcher: initialize geometry history limit variable (#16337)
* Sketcher: initialize geometry history limit variable The variable seems to be uninitialized, valgrind complais about it. The `git grep geoHistoryLevel` and the code ispection suggest it is never set. If initialized to zero, most of the related code is never used, which can point to the fact there is either another bug or the code is unused. The variable was introduced in 58a0bb40ed. * Sketcher: Default geoHistoryLevel to 1 --------- Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
@@ -156,6 +156,7 @@ SketchObject::SketchObject()
|
||||
(App::PropertyType)(App::Prop_None),
|
||||
"Tolerance for fitting arcs of projected external geometry");
|
||||
geoLastId = 0;
|
||||
geoHistoryLevel = 1;
|
||||
|
||||
ADD_PROPERTY(InternalShape,
|
||||
(Part::TopoShape()));
|
||||
|
||||
Reference in New Issue
Block a user