Skip to content

Commit 50f20c2

Browse files
committedOct 31, 2011
Fix fix for #4439
1 parent d8dc04f commit 50f20c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/legend/qgslegend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ void QgsLegend::refreshLayerSymbology( QString key, bool expandItem )
17561756
// in case the current item is a child of the layer, use the layer as current item
17571757
// because otherwise we would set an invalid item as current item
17581758
// (in refreshSymbology the symbology items are removed and new ones are added)
1759-
if ( current->parent() == theLegendLayer )
1759+
if ( current && current->parent() == theLegendLayer )
17601760
current = current->parent();
17611761

17621762
double widthScale = 1.0;

0 commit comments

Comments
 (0)
Please sign in to comment.