[QGIS Commit] r10964 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Jun 21 11:01:03 EDT 2009
Author: mhugent
Date: 2009-06-21 11:01:02 -0400 (Sun, 21 Jun 2009)
New Revision: 10964
Modified:
trunk/qgis/src/app/qgisapp.cpp
Log:
Fix for bug #1738, duplicated objects in composer
Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp 2009-06-21 12:30:36 UTC (rev 10963)
+++ trunk/qgis/src/app/qgisapp.cpp 2009-06-21 15:01:02 UTC (rev 10964)
@@ -3341,6 +3341,10 @@
// clear the map canvas
removeAllLayers();
+ //clear the composer
+ delete mComposer;
+ mComposer = new QgsComposer(this);
+
try
{
if ( QgsProject::instance()->read( projectFile ) )
More information about the QGIS-commit
mailing list