Skip to content

Commit

Permalink
Partially revert "categorized renderer: also setup symbol render cont…
Browse files Browse the repository at this point in the history
…ext for hashed symbols"

This partially reverts commit c7c5244.

Causes a race condition which results in random crashes while
using the categorised symbol renderer.

The intent behind the original commit is unknown
  • Loading branch information
nyalldawson committed Jul 10, 2017
1 parent 348088e commit 7db483d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
Expand Up @@ -445,12 +445,6 @@ void QgsCategorizedSymbolRendererV2::startRender( QgsRenderContext& context, con
mTempSymbols[ cat.symbol()] = tempSymbol;
}
}

Q_FOREACH ( QgsSymbolV2 *symbol, mSymbolHash.values() )
{
symbol->startRender( context, &fields );
}

return;
}

Expand All @@ -461,11 +455,6 @@ void QgsCategorizedSymbolRendererV2::stopRender( QgsRenderContext& context )
cat.symbol()->stopRender( context );
}

Q_FOREACH ( QgsSymbolV2 *symbol, mSymbolHash.values() )
{
symbol->stopRender( context );
}

// cleanup mTempSymbols
QHash<QgsSymbolV2*, QgsSymbolV2*>::const_iterator it2 = mTempSymbols.constBegin();
for ( ; it2 != mTempSymbols.constEnd(); ++it2 )
Expand Down

0 comments on commit 7db483d

Please sign in to comment.