Skip to content

Commit 6575448

Browse files
committed
fixed warning
1 parent c4014cf commit 6575448

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,12 @@ void QgsRuleBasedRendererV2Widget::countFeatures()
466466

467467
mRenderer->stopRender( renderContext );
468468

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

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

943-
for ( int i; i < rowCount( idx ); i++ )
945+
for ( int i = 0; i < rowCount( idx ); i++ )
944946
{
945947
updateRule( index( i, 0, idx ) );
946948
}

0 commit comments

Comments
 (0)