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:
Jiří Pinkava
2024-09-16 17:41:12 +02:00
committed by GitHub
parent 9e86a3558f
commit a87701916f

View File

@@ -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()));