Skip to content
Permalink
Browse files

Fix fix for #4439

  • Loading branch information
wonder-sk committed Oct 31, 2011
1 parent d8dc04f commit 50f20c2c20e39c33ba72bd72d370acdcffeb9d67
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/legend/qgslegend.cpp
@@ -1756,7 +1756,7 @@ void QgsLegend::refreshLayerSymbology( QString key, bool expandItem )
// in case the current item is a child of the layer, use the layer as current item
// because otherwise we would set an invalid item as current item
// (in refreshSymbology the symbology items are removed and new ones are added)
if ( current->parent() == theLegendLayer )
if ( current && current->parent() == theLegendLayer )
current = current->parent();

double widthScale = 1.0;

0 comments on commit 50f20c2

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