Skip to content

Commit

Permalink
Revert 8f04d22; set condition to ifndef QT_NO_DEBUG
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
dakcarto committed Oct 8, 2015
1 parent e703fc6 commit 307806a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/qgsvectorlayerundocommand.cpp
Expand Up @@ -44,10 +44,9 @@ QgsVectorLayerUndoCommandAddFeature::QgsVectorLayerUndoCommandAddFeature( QgsVec

void QgsVectorLayerUndoCommandAddFeature::undo()
{
#ifdef QGISDEBUG
#ifndef QT_NO_DEBUG
QgsFeatureMap::const_iterator it = mBuffer->mAddedFeatures.find( mFeature.id() );
Q_ASSERT( it != mBuffer->mAddedFeatures.end() );
Q_UNUSED( it );
#endif
mBuffer->mAddedFeatures.remove( mFeature.id() );

Expand Down

0 comments on commit 307806a

Please sign in to comment.