Skip to content
Permalink
Browse files

Fix a crash in filtered legends

  • Loading branch information
nyalldawson committed Oct 22, 2015
1 parent b4b7017 commit 87e11cb2d7c538466011c0399a5ac3d31abb585a
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/core/qgsmaphittest.cpp
@@ -82,13 +82,15 @@ void QgsMapHitTest::runHitTestLayer( QgsVectorLayer* vl, SymbolV2Set& usedSymbol
{
Q_FOREACH ( QgsSymbolV2* s, r->originalSymbolsForFeature( f, context ) )
{
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
if ( s )
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
}
}
else
{
QgsSymbolV2* s = r->originalSymbolForFeature( f, context );
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
if ( s )
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
}
}
r->stopRender( context );

0 comments on commit 87e11cb

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