Skip to content

Commit

Permalink
Clear non-indexable layers when they are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jan 27, 2016
1 parent 193d377 commit 19b18bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgssnappingutils.cpp
Expand Up @@ -514,6 +514,9 @@ void QgsSnappingUtils::onLayersWillBeRemoved( const QStringList& layerIds )
// remove locators for layers that are going to be deleted
Q_FOREACH ( const QString& layerId, layerIds )
{
if ( mHybridNonindexableLayers.contains( layerId ) )
mHybridNonindexableLayers.remove( layerId );

for ( LocatorsMap::iterator it = mLocators.begin(); it != mLocators.end(); )
{
if ( it.key()->id() == layerId )
Expand Down

0 comments on commit 19b18bc

Please sign in to comment.