mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix a crash in filtered legends
This commit is contained in:
parent
b4b7017068
commit
87e11cb2d7
@ -82,13 +82,15 @@ void QgsMapHitTest::runHitTestLayer( QgsVectorLayer* vl, SymbolV2Set& usedSymbol
|
|||||||
{
|
{
|
||||||
Q_FOREACH ( QgsSymbolV2* s, r->originalSymbolsForFeature( f, context ) )
|
Q_FOREACH ( QgsSymbolV2* s, r->originalSymbolsForFeature( f, context ) )
|
||||||
{
|
{
|
||||||
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
|
if ( s )
|
||||||
|
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QgsSymbolV2* s = r->originalSymbolForFeature( f, context );
|
QgsSymbolV2* s = r->originalSymbolForFeature( f, context );
|
||||||
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
|
if ( s )
|
||||||
|
usedSymbols.insert( QgsSymbolLayerV2Utils::symbolProperties( s ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
r->stopRender( context );
|
r->stopRender( context );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user