Fix for bug where the first row was not classified in unique value dialog

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7234 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2007-09-30 19:01:34 +00:00
parent 4c7b8a42aa
commit a030b22744

View File

@ -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);