diff --git a/src/Mod/Part/App/PropertyGeometryList.cpp b/src/Mod/Part/App/PropertyGeometryList.cpp index 2f33c4d958..604ceacdce 100644 --- a/src/Mod/Part/App/PropertyGeometryList.cpp +++ b/src/Mod/Part/App/PropertyGeometryList.cpp @@ -229,12 +229,12 @@ void PropertyGeometryList::Save(Writer &writer) const writer.incInd(); for (int i = 0; i < getSize(); i++) { writer.Stream() << writer.ind() << "getTypeId().getName() << "\"" << endl; - for( auto &e : _lValueList[i]->getExtensions() ) { + << _lValueList[i]->getTypeId().getName() << "\""; + for (auto &e : _lValueList[i]->getExtensions() ) { auto ext = e.lock(); - auto gpe = freecad_dynamic_cast(ext.get()); - if (gpe) + if (auto gpe = freecad_dynamic_cast(ext.get())) { gpe->preSave(writer); + } } writer.Stream() << " migrated=\"1\">\n";