Skip to content
Permalink
Browse files

Update composer previews if refresh button is clicked. Fix for bug #2207



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12421 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 12, 2009
1 parent de47c00 commit 41b5973fa90b5d3c8a6b78d6329b73ad6385d800
Showing with 16 additions and 2 deletions.
  1. +16 −2 src/app/composer/qgscomposer.cpp
@@ -433,10 +433,24 @@ void QgsComposer::on_mActionZoomOut_triggered()

void QgsComposer::on_mActionRefreshView_triggered()
{
if ( mComposition )
if ( !mComposition )
{
mComposition->update();
return;
}

//refresh preview of all composer maps
QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.begin();
for(; it != mItemWidgetMap.end(); ++it)
{
QgsComposerMap* map = dynamic_cast<QgsComposerMap*>(it.key());
if(map && !map->isDrawing())
{
map->cache();
map->update();
}
}

mComposition->update();
}

void QgsComposer::on_mActionExportAsPDF_triggered()

0 comments on commit 41b5973

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