Skip to content

Commit 1e32db3

Browse files
author
mhugent
committed
Fix composer item selection
git-svn-id: http://svn.osgeo.org/qgis/trunk@14750 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 805f5d0 commit 1e32db3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/composer/qgscomposer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ void QgsComposer::showCompositionOptions( QWidget *w )
360360
mItemStackedWidget->addWidget( w );
361361
}
362362

363-
void QgsComposer::showItemOptions( const QgsComposerItem* item )
363+
void QgsComposer::showItemOptions( QgsComposerItem* item )
364364
{
365365
QWidget* currentWidget = mItemStackedWidget->currentWidget();
366366

@@ -371,7 +371,7 @@ void QgsComposer::showItemOptions( const QgsComposerItem* item )
371371
return;
372372
}
373373

374-
QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.find( const_cast<QgsComposerItem*>( item ) );
374+
QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.find( item );
375375
if ( it == mItemWidgetMap.constEnd() )
376376
{
377377
return;

src/app/composer/qgscomposer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
233233
void deleteItem( QgsComposerItem* item );
234234

235235
/**Shows the configuration widget for a composer item*/
236-
void showItemOptions( const QgsComposerItem* i );
236+
void showItemOptions( QgsComposerItem* i );
237237

238238
//XML, usually connected with QgsProject::readProject and QgsProject::writeProject
239239

0 commit comments

Comments
 (0)