Skip to content

Commit

Permalink
use Q_ASSERT
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Aug 6, 2019
1 parent 35300ea commit 8c26367
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/app/qgsmaptoolreshape.cpp
Expand Up @@ -186,14 +186,12 @@ void QgsMapToolReshape::reshape( QgsVectorLayer *vlayer )
if ( QgsProject::instance()->topologicalEditing() )
{
QList<QgsPointLocator::Match> sm = snappingMatches();
if ( pts.size() == sm.size() ) // should be always true
Q_ASSERT( pts.size() == sm.size() );
for ( int i = 0; i < sm.size() ; ++i )
{
for ( int i = 0; i < sm.size() ; ++i )
if ( sm.at( i ).layer() )
{
if ( sm.at( i ).layer() )
{
sm.at( i ).layer()->addTopologicalPoints( pts.at( i ) );
}
sm.at( i ).layer()->addTopologicalPoints( pts.at( i ) );
}
}
}
Expand Down

0 comments on commit 8c26367

Please sign in to comment.