[mapguide-commits] r5366 - trunk/MgDev/Common/MdfParser
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Oct 31 22:39:26 EDT 2010
Author: hubu
Date: 2010-10-31 19:39:26 -0700 (Sun, 31 Oct 2010)
New Revision: 5366
Modified:
trunk/MgDev/Common/MdfParser/IODrawingLayerDefinition.cpp
trunk/MgDev/Common/MdfParser/IOGridLayerDefinition.cpp
trunk/MgDev/Common/MdfParser/IOMapDefinition.cpp
trunk/MgDev/Common/MdfParser/IOVectorLayerDefinition.cpp
Log:
On behalf of: Spark Liu
Add tab before the end tag of watermarks in map / layer definition.
Fix ticket 1513.
Modified: trunk/MgDev/Common/MdfParser/IODrawingLayerDefinition.cpp
===================================================================
--- trunk/MgDev/Common/MdfParser/IODrawingLayerDefinition.cpp 2010-11-01 02:34:14 UTC (rev 5365)
+++ trunk/MgDev/Common/MdfParser/IODrawingLayerDefinition.cpp 2010-11-01 02:39:26 UTC (rev 5366)
@@ -213,7 +213,7 @@
for (int i=0; i<watermarkCount; ++i)
IOWatermarkInstance::Write(fd, drawingLayer->GetWatermarks()->GetAt(i), version);
dectab();
- fd << endStr(sWatermarks) << std::endl;
+ fd << tab() << endStr(sWatermarks) << std::endl;
}
else if (*version >= Version(1, 0, 0))
{
@@ -225,7 +225,7 @@
for (int i=0; i<watermarkCount; ++i)
IOWatermarkInstance::Write(fdExtData, drawingLayer->GetWatermarks()->GetAt(i), version);
dectab();
- fdExtData << endStr(sWatermarks) << std::endl;
+ fdExtData << tab() << endStr(sWatermarks) << std::endl;
dectab();
}
Modified: trunk/MgDev/Common/MdfParser/IOGridLayerDefinition.cpp
===================================================================
--- trunk/MgDev/Common/MdfParser/IOGridLayerDefinition.cpp 2010-11-01 02:34:14 UTC (rev 5365)
+++ trunk/MgDev/Common/MdfParser/IOGridLayerDefinition.cpp 2010-11-01 02:39:26 UTC (rev 5366)
@@ -217,7 +217,7 @@
for (int i=0; i<watermarkCount; ++i)
IOWatermarkInstance::Write(fd, gridLayer->GetWatermarks()->GetAt(i), version);
dectab();
- fd << endStr(sWatermarks) << std::endl;
+ fd << tab() << endStr(sWatermarks) << std::endl;
}
else if (*version >= Version(1, 0, 0))
{
@@ -229,7 +229,7 @@
for (int i=0; i<watermarkCount; ++i)
IOWatermarkInstance::Write(fdExtData, gridLayer->GetWatermarks()->GetAt(i), version);
dectab();
- fdExtData << endStr(sWatermarks) << std::endl;
+ fdExtData << tab() << endStr(sWatermarks) << std::endl;
dectab();
}
Modified: trunk/MgDev/Common/MdfParser/IOMapDefinition.cpp
===================================================================
--- trunk/MgDev/Common/MdfParser/IOMapDefinition.cpp 2010-11-01 02:34:14 UTC (rev 5365)
+++ trunk/MgDev/Common/MdfParser/IOMapDefinition.cpp 2010-11-01 02:39:26 UTC (rev 5366)
@@ -212,7 +212,7 @@
for (int i=0; i<watermarkCount; ++i)
IOWatermarkInstance::Write(fd, map->GetWatermarks()->GetAt(i), version);
dectab();
- fd << endStr("Watermarks") << std::endl; // NOXLATE
+ fd << tab() << endStr("Watermarks") << std::endl; // NOXLATE
}
}
Modified: trunk/MgDev/Common/MdfParser/IOVectorLayerDefinition.cpp
===================================================================
--- trunk/MgDev/Common/MdfParser/IOVectorLayerDefinition.cpp 2010-11-01 02:34:14 UTC (rev 5365)
+++ trunk/MgDev/Common/MdfParser/IOVectorLayerDefinition.cpp 2010-11-01 02:39:26 UTC (rev 5366)
@@ -245,7 +245,7 @@
for (int i=0; i<watermarkCount; ++i)
IOWatermarkInstance::Write(fd, vectorLayer->GetWatermarks()->GetAt(i), version);
dectab();
- fd << endStr(sWatermarks) << std::endl;
+ fd << tab() << endStr(sWatermarks) << std::endl;
}
else if (*version >= Version(1, 0, 0))
{
@@ -257,7 +257,7 @@
for (int i=0; i<watermarkCount; ++i)
IOWatermarkInstance::Write(fdExtData, vectorLayer->GetWatermarks()->GetAt(i), version);
dectab();
- fdExtData << endStr(sWatermarks) << std::endl;
+ fdExtData << tab() << endStr(sWatermarks) << std::endl;
dectab();
}
More information about the mapguide-commits
mailing list