Skip to content
Permalink
Browse files
Fix fix for #4439
  • Loading branch information
wonder-sk authored and mach0 committed Nov 13, 2011
1 parent 73752e6 commit a127783db950c1682fb66ffcdb4a511068757193
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/legend/qgslegend.cpp
@@ -1568,7 +1568,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 a127783

Please sign in to comment.