Skip to content
Permalink
Browse files

Fix for other multiple redraws

git-svn-id: http://svn.osgeo.org/qgis/trunk@15174 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Feb 15, 2011
1 parent 8e0e6f4 commit 6d77f18d7167d0a3b44c10b876460fe921f2fd86
Showing with 9 additions and 5 deletions.
  1. +9 −0 src/app/legend/qgslegendlayer.cpp
  2. +0 −5 src/core/qgsvectorlayer.cpp
@@ -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()
@@ -3653,9 +3653,6 @@ bool QgsVectorLayer::commitChanges()

updateFieldMap();
mDataProvider->updateExtents();

triggerRepaint();

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

return success;
@@ -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;
}

0 comments on commit 6d77f18

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