diff --git a/src/Mod/Sketcher/App/PropertyConstraintList.cpp b/src/Mod/Sketcher/App/PropertyConstraintList.cpp index c291712cbe..28614ee6e2 100644 --- a/src/Mod/Sketcher/App/PropertyConstraintList.cpp +++ b/src/Mod/Sketcher/App/PropertyConstraintList.cpp @@ -179,10 +179,8 @@ void PropertyConstraintList::Restore(Base::XMLReader &reader) Property *PropertyConstraintList::Copy(void) const { PropertyConstraintList *p = new PropertyConstraintList(); - p->setValidGeometryKeys(validGeometryKeys); - if (invalidGeometry) - p->invalidateGeometry(); - p->setValues(_lValueList); + p->applyValidGeometryKeys(validGeometryKeys); + p->applyValues(_lValueList); return p; } @@ -191,9 +189,7 @@ void PropertyConstraintList::Paste(const Property &from) const PropertyConstraintList& FromList = dynamic_cast(from); aboutToSetValue(); applyValues(FromList._lValueList); - setValidGeometryKeys(FromList.validGeometryKeys); - if (FromList.invalidGeometry) - invalidateGeometry(); + applyValidGeometryKeys(FromList.validGeometryKeys); hasSetValue(); } @@ -217,15 +213,9 @@ void PropertyConstraintList::acceptGeometry(const std::vector hasSetValue(); } -void PropertyConstraintList::setValidGeometryKeys(const std::vector &keys) +void PropertyConstraintList::applyValidGeometryKeys(const std::vector &keys) { validGeometryKeys = keys; - invalidGeometry = false; -} - -void PropertyConstraintList::invalidateGeometry() -{ - invalidGeometry = true; } void PropertyConstraintList::checkGeometry(const std::vector &GeoList) diff --git a/src/Mod/Sketcher/App/PropertyConstraintList.h b/src/Mod/Sketcher/App/PropertyConstraintList.h index 56b9d2eb1f..7933f3777f 100644 --- a/src/Mod/Sketcher/App/PropertyConstraintList.h +++ b/src/Mod/Sketcher/App/PropertyConstraintList.h @@ -87,7 +87,6 @@ public: virtual unsigned int getMemSize(void) const; void acceptGeometry(const std::vector &GeoList); - void invalidateGeometry(); void checkGeometry(const std::vector &GeoList); private: @@ -97,7 +96,7 @@ private: bool invalidGeometry; void applyValues(const std::vector&); - void setValidGeometryKeys(const std::vector &keys); + void applyValidGeometryKeys(const std::vector &keys); static std::vector _emptyValueList; };