Skip to content

Commit

Permalink
Fix for other multiple redraws
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15174 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 15, 2011
1 parent 8e0e6f4 commit 6d77f18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/app/legend/qgslegendlayer.cpp
Expand Up @@ -340,7 +340,16 @@ void QgsLegendLayer::updateIcon()
// TODO: projection error icon?

QIcon theIcon( newIcon );
QgsLegend* l = legend();
if ( l )
{
l->blockSignals( true ); //prevent unnecessary canvas redraw
}
setIcon( 0, theIcon );
if ( l )
{
l->blockSignals( false );
}
}

QPixmap QgsLegendLayer::getOriginalPixmap()
Expand Down
5 changes: 0 additions & 5 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -3653,9 +3653,6 @@ bool QgsVectorLayer::commitChanges()

updateFieldMap();
mDataProvider->updateExtents();

triggerRepaint();

QgsDebugMsg( "result:\n " + mCommitErrors.join( "\n " ) );

return success;
Expand Down Expand Up @@ -3717,8 +3714,6 @@ bool QgsVectorLayer::rollBack()
// invalidate the cache so the layer updates properly to show its original
// after the rollback
setCacheImage( 0 );
triggerRepaint();

return true;
}

Expand Down

0 comments on commit 6d77f18

Please sign in to comment.