Skip to content
Permalink
Browse files
Fixing support for spatialite 4.0
  • Loading branch information
wonder-sk committed Dec 29, 2012
1 parent 0f97665 commit 5b008006658b221eb080b64aca215fc879b6ca72
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -596,7 +596,6 @@ void QgsSpatiaLiteProvider::loadFieldsAbstractInterface( gaiaVectorLayerPtr lyr
return;
}

int fldNo = 0;
while ( fld )
{
QString name = QString::fromUtf8( fld->AttributeFieldName );
@@ -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;
}

0 comments on commit 5b00800

Please sign in to comment.