Skip to content
Permalink
Browse files

fix offline editing plugin

  • Loading branch information
vinayan committed May 13, 2013
1 parent e7f8326 commit de7deb7bc272aa0129c21fb127505c5a26c42402
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsofflineediting.cpp
@@ -522,8 +522,8 @@ void QgsOfflineEditing::copyVectorLayer( QgsVectorLayer* layer, sqlite3* db, con
// NOTE: Spatialite provider ignores position of geometry column
// fill gap in QgsAttributeMap if geometry column is not last (WORKAROUND)
int column = 0;
QgsAttributes newAttrs;
QgsAttributes attrs = f.attributes();
QgsAttributes newAttrs(attrs.count());
for ( int it = 0; it < attrs.count(); ++it )
{
newAttrs[column++] = attrs[it];

0 comments on commit de7deb7

Please sign in to comment.
You can’t perform that action at this time.