Skip to content

Commit

Permalink
Fix composer item selection
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14750 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 23, 2010
1 parent 805f5d0 commit 1e32db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/composer/qgscomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void QgsComposer::showCompositionOptions( QWidget *w )
mItemStackedWidget->addWidget( w );
}

void QgsComposer::showItemOptions( const QgsComposerItem* item )
void QgsComposer::showItemOptions( QgsComposerItem* item )
{
QWidget* currentWidget = mItemStackedWidget->currentWidget();

Expand All @@ -371,7 +371,7 @@ void QgsComposer::showItemOptions( const QgsComposerItem* item )
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;
Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposer.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
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

Expand Down

0 comments on commit 1e32db3

Please sign in to comment.