Skip to content
Permalink
Browse files

Fix composer item selection

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14750 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 23, 2010
1 parent 009c8e5 commit 626f08bcdb696dcedf7d8eeb75f6e9766208db86
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/app/composer/qgscomposer.cpp
  2. +1 −1 src/app/composer/qgscomposer.h
@@ -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();

@@ -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;
@@ -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

0 comments on commit 626f08b

Please sign in to comment.
You can’t perform that action at this time.