Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix composer item selection
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14750 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 23, 2010
1 parent 009c8e5 commit 626f08b
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
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
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 626f08b

Please sign in to comment.