Skip to content
Permalink
Browse files
fixed a bug in SpatiaLite provider (crash following 'ALTER TABLE ADD …
…COLUMN')

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11712 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
esseffe committed Sep 25, 2009
1 parent 35e6048 commit 70d7b842ab5795cefe94aa7425af7ccd3af7280f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -130,6 +130,7 @@ void QgsSpatiaLiteProvider::loadFields()
char *errMsg = NULL;
QString pkName;
int pkCount = 0;
int fldNo = 0;
char xSql[1024];

attributeFields.clear();
@@ -177,7 +178,7 @@ void QgsSpatiaLiteProvider::loadFields()
fieldType = QVariant::Double;
}

attributeFields.insert( i - 1, QgsField( name, fieldType, type, 0, 0, "" ) );
attributeFields.insert( fldNo++, QgsField( name, fieldType, type, 0, 0, "" ) );
}
}
}

0 comments on commit 70d7b84

Please sign in to comment.