From 4e199bd23e0be48fcfdd5b6c27157d7bcf65ef16 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Tue, 8 Dec 2020 14:36:49 +0100 Subject: [PATCH] Sketcher: Fix construction migration --- src/Mod/Part/App/GeometryMigrationExtension.h | 2 +- src/Mod/Sketcher/App/SketchObject.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/App/GeometryMigrationExtension.h b/src/Mod/Part/App/GeometryMigrationExtension.h index 8308a0a42b..7940ddc11e 100644 --- a/src/Mod/Part/App/GeometryMigrationExtension.h +++ b/src/Mod/Part/App/GeometryMigrationExtension.h @@ -64,7 +64,7 @@ public: virtual PyObject *getPyObject(void) override; - virtual bool getConstruction() const {return Construction;} + virtual bool getConstruction() const {return ConstructionState;} virtual void setConstruction(bool construction) {ConstructionState = construction;} virtual bool testMigrationType(int flag) const { return GeometryMigrationFlags.test((size_t)(flag)); }; diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 7f06db1ebc..7201e7bb11 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -7546,7 +7546,7 @@ void SketchObject::migrateSketch(void) if(ext->testMigrationType(Part::GeometryMigrationExtension::Construction)) { - GeometryFacade::setConstruction(g, ext->Construction); + GeometryFacade::setConstruction(g, ext->getConstruction()); } g->deleteExtension(Part::GeometryMigrationExtension::getClassTypeId());