[QGIS Commit] r10961 - trunk/qgis/src/app/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Jun 19 10:07:07 EDT 2009


Author: mhugent
Date: 2009-06-19 10:07:07 -0400 (Fri, 19 Jun 2009)
New Revision: 10961

Modified:
   trunk/qgis/src/app/composer/qgscomposeritemwidget.cpp
Log:
Fix for bug 1488

Modified: trunk/qgis/src/app/composer/qgscomposeritemwidget.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposeritemwidget.cpp	2009-06-19 13:07:56 UTC (rev 10960)
+++ trunk/qgis/src/app/composer/qgscomposeritemwidget.cpp	2009-06-19 14:07:07 UTC (rev 10961)
@@ -17,6 +17,7 @@
 
 #include "qgscomposeritemwidget.h"
 #include "qgscomposeritem.h"
+#include "qgscomposermap.h"
 #include "qgsitempositiondialog.h"
 #include "qgspoint.h"
 #include <QColorDialog>
@@ -74,6 +75,13 @@
 
   newBackgroundColor.setAlpha( mOpacitySlider->value() );
   mItem->setBrush( QBrush( QColor( newBackgroundColor ), Qt::SolidPattern ) );
+  //if the item is a composer map, we need to regenerate the map image
+  //because it usually is cached
+  QgsComposerMap* cm = dynamic_cast<QgsComposerMap*>(mItem);
+  if(cm)
+  {
+    cm->cache();
+  }
   mItem->update();
 }
 



More information about the QGIS-commit mailing list