Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Oct 31, 2012
1 parent c4014cf commit 6575448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
Expand Up @@ -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 );
}
Expand Down Expand Up @@ -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 ) );
}
Expand Down

0 comments on commit 6575448

Please sign in to comment.