Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing support for spatialite 4.0
  • Loading branch information
wonder-sk committed Dec 29, 2012
1 parent 0f97665 commit 5b00800
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -596,7 +596,6 @@ void QgsSpatiaLiteProvider::loadFieldsAbstractInterface( gaiaVectorLayerPtr lyr
return;
}

int fldNo = 0;
while ( fld )
{
QString name = QString::fromUtf8( fld->AttributeFieldName );
Expand All @@ -616,7 +615,7 @@ void QgsSpatiaLiteProvider::loadFieldsAbstractInterface( gaiaVectorLayerPtr lyr
fieldType = QVariant::Double;
type = "DOUBLE";
}
attributeFields.insert( fldNo++, QgsField( name, fieldType, type, 0, 0, "" ) );
attributeFields.append( QgsField( name, fieldType, type, 0, 0, "" ) );
}
fld = fld->Next;
}
Expand Down

0 comments on commit 5b00800

Please sign in to comment.