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/qgis@7234 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 30, 2007
1 parent 4c7b8a4 commit a030b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsuniquevaluedialog.cpp
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 a030b22

Please sign in to comment.