Fix crash in topology checker (fix #14017)

This commit is contained in:
Nyall Dawson 2015-12-21 19:30:41 +11:00
parent 013d6d3331
commit 7afa9e3161

View File

@ -327,9 +327,9 @@ void rulesDialog::updateRuleItems( const QString &layerName )
return;
}
for ( QMap<QString, TopologyRule>::const_iterator it = mTestConfMap.constBegin(); it != mTestConfMap.constEnd(); ++it )
for ( QMap<QString, TopologyRule>::iterator it = mTestConfMap.begin(); it != mTestConfMap.end(); ++it )
{
TopologyRule rule = it.value();
TopologyRule& rule = it.value();
if ( rule.layer1AcceptsType( vlayer->geometryType() ) )
{
mRuleBox->addItem( it.key() );