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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Nov 23 07:26:26 EST 2010


Author: mhugent
Date: 2010-11-23 04:26:26 -0800 (Tue, 23 Nov 2010)
New Revision: 14750

Modified:
   trunk/qgis/src/app/composer/qgscomposer.cpp
   trunk/qgis/src/app/composer/qgscomposer.h
Log:
Fix composer item selection

Modified: trunk/qgis/src/app/composer/qgscomposer.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposer.cpp	2010-11-23 12:25:24 UTC (rev 14749)
+++ trunk/qgis/src/app/composer/qgscomposer.cpp	2010-11-23 12:26:26 UTC (rev 14750)
@@ -360,7 +360,7 @@
   mItemStackedWidget->addWidget( w );
 }
 
-void QgsComposer::showItemOptions( const QgsComposerItem* item )
+void QgsComposer::showItemOptions( QgsComposerItem* item )
 {
   QWidget* currentWidget = mItemStackedWidget->currentWidget();
 
@@ -371,7 +371,7 @@
     return;
   }
 
-  QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.find( const_cast<QgsComposerItem*>( item ) );
+  QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.find( item );
   if ( it == mItemWidgetMap.constEnd() )
   {
     return;

Modified: trunk/qgis/src/app/composer/qgscomposer.h
===================================================================
--- trunk/qgis/src/app/composer/qgscomposer.h	2010-11-23 12:25:24 UTC (rev 14749)
+++ trunk/qgis/src/app/composer/qgscomposer.h	2010-11-23 12:26:26 UTC (rev 14750)
@@ -233,7 +233,7 @@
     void deleteItem( QgsComposerItem* item );
 
     /**Shows the configuration widget for a composer item*/
-    void showItemOptions( const QgsComposerItem* i );
+    void showItemOptions( QgsComposerItem* i );
 
     //XML, usually connected with QgsProject::readProject and QgsProject::writeProject
 



More information about the QGIS-commit mailing list