Skip to content
Permalink
Browse files
Fix for bug where the first row was not classified in unique value di…
…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 a030b2274458e03de0d9d9bf16e78b94d9800434
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsuniquevaluedialog.cpp
@@ -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);

0 comments on commit a030b22

Please sign in to comment.