mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
4c7b8a42aa
commit
a030b22744
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user