[mapguide-commits] r7879 - branches/maestro-5.0.x/Maestro.Editors/Preview
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Sep 30 05:11:34 PDT 2013
Author: jng
Date: 2013-09-30 05:11:33 -0700 (Mon, 30 Sep 2013)
New Revision: 7879
Modified:
branches/maestro-5.0.x/Maestro.Editors/Preview/LocalMapPreviewer.cs
Log:
#2366: Merge to 5.0.x
Modified: branches/maestro-5.0.x/Maestro.Editors/Preview/LocalMapPreviewer.cs
===================================================================
--- branches/maestro-5.0.x/Maestro.Editors/Preview/LocalMapPreviewer.cs 2013-09-30 12:00:40 UTC (rev 7878)
+++ branches/maestro-5.0.x/Maestro.Editors/Preview/LocalMapPreviewer.cs 2013-09-30 12:11:33 UTC (rev 7879)
@@ -110,6 +110,16 @@
}
break;
}
+
+ if (string.IsNullOrEmpty(previewMdf.ResourceID))
+ {
+ var sessionId = edSvc.SessionID;
+ var mdfId = "Session:" + sessionId + "//" + Guid.NewGuid() + ".MapDefinition"; //NOXLATE
+
+ conn.ResourceService.SaveResourceAs(previewMdf, mdfId);
+ previewMdf.ResourceID = mdfId;
+ }
+
if (previewMdf != null)
return mapSvc.CreateMap(previewMdf);
else
More information about the mapguide-commits
mailing list