Skip to content

Commit a127783

Browse files
wonder-skmach0
authored andcommittedNov 13, 2011
Fix fix for #4439
1 parent 73752e6 commit a127783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/legend/qgslegend.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ void QgsLegend::refreshLayerSymbology( QString key, bool expandItem )
15681568
// in case the current item is a child of the layer, use the layer as current item
15691569
// because otherwise we would set an invalid item as current item
15701570
// (in refreshSymbology the symbology items are removed and new ones are added)
1571-
if ( current->parent() == theLegendLayer )
1571+
if ( current && current->parent() == theLegendLayer )
15721572
current = current->parent();
15731573

15741574
double widthScale = 1.0;

0 commit comments

Comments
 (0)
Please sign in to comment.