[mapguide-commits] r7278 - trunk/MgDev/Common/PlatformBase/Services
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Dec 17 20:35:52 PST 2012
Author: jng
Date: 2012-12-17 20:35:52 -0800 (Mon, 17 Dec 2012)
New Revision: 7278
Modified:
trunk/MgDev/Common/PlatformBase/Services/ClassDefinition.cpp
trunk/MgDev/Common/PlatformBase/Services/FeatureSchema.cpp
Log:
#2198: Fix deletion flag not persisted during binary serialization/deserialization causing ApplySchema to not perform element deletions.
Modified: trunk/MgDev/Common/PlatformBase/Services/ClassDefinition.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/Services/ClassDefinition.cpp 2012-12-17 14:26:08 UTC (rev 7277)
+++ trunk/MgDev/Common/PlatformBase/Services/ClassDefinition.cpp 2012-12-18 04:35:52 UTC (rev 7278)
@@ -199,6 +199,7 @@
stream->WriteBoolean(m_isComputed);
stream->WriteBoolean(m_isAbstract);
stream->WriteObject(m_baseClassDefinition);
+ stream->WriteBoolean(m_isDeleted);
}
//////////////////////////////////////////////////////////////
@@ -214,6 +215,7 @@
stream->GetBoolean(m_isComputed);
stream->GetBoolean(m_isAbstract);
m_baseClassDefinition = (MgClassDefinition*)stream->GetObject();
+ stream->GetBoolean(m_isDeleted);
}
//////////////////////////////////////////////////////////////
Modified: trunk/MgDev/Common/PlatformBase/Services/FeatureSchema.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/Services/FeatureSchema.cpp 2012-12-17 14:26:08 UTC (rev 7277)
+++ trunk/MgDev/Common/PlatformBase/Services/FeatureSchema.cpp 2012-12-18 04:35:52 UTC (rev 7278)
@@ -94,6 +94,7 @@
stream->WriteString(m_name);
stream->WriteString(m_description);
stream->WriteObject(m_collection);
+ stream->WriteBoolean(m_isDeleted);
}
//////////////////////////////////////////////////////////////
@@ -102,6 +103,7 @@
stream->GetString(m_name);
stream->GetString(m_description);
m_collection = (MgClassDefinitionCollection*)stream->GetObject();
+ stream->GetBoolean(m_isDeleted);
}
//////////////////////////////////////////////////////////////
More information about the mapguide-commits
mailing list