Skip to content

Commit

Permalink
Fix for bug where the first row was not classified in unique value di…
Browse files Browse the repository at this point in the history
…alog

git-svn-id: http://svn.osgeo.org/qgis/trunk@7234 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 30, 2007
1 parent 864fef8 commit 5f1925f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsuniquevaluedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void QgsUniqueValueDialog::apply()
if (provider)
{
int fieldIndex = provider->indexFromFieldName(mClassificationComboBox->currentText());
if(fieldIndex > 0)
if(fieldIndex != -1)
{
renderer->setClassificationField(fieldIndex);
mVectorLayer->setRenderer(renderer);
Expand Down

0 comments on commit 5f1925f

Please sign in to comment.