Skip to content
Permalink
Browse files

fixed warning

  • Loading branch information
blazek committed Oct 31, 2012
1 parent c4014cf commit 65754481bf8226974157c861d628459f4851f975
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
@@ -466,10 +466,12 @@ void QgsRuleBasedRendererV2Widget::countFeatures()

mRenderer->stopRender( renderContext );

#ifdef QGISDEBUG
foreach ( QgsRuleBasedRendererV2::Rule *rule, countMap.keys() )
{
QgsDebugMsg( QString( "rule: %1 count %2" ).arg( rule->label() ).arg( countMap[rule].count ) );
}
#endif

mModel->setFeatureCounts( countMap );
}
@@ -940,7 +942,7 @@ void QgsRuleBasedRendererV2Model::updateRule( const QModelIndex& idx )
emit dataChanged( index( 0, 0, idx ),
index( rowCount( idx ) - 1, columnCount( idx ) - 1, idx ) );

for ( int i; i < rowCount( idx ); i++ )
for ( int i = 0; i < rowCount( idx ); i++ )
{
updateRule( index( i, 0, idx ) );
}

0 comments on commit 6575448

Please sign in to comment.
You can’t perform that action at this time.