Skip to content

Commit

Permalink
fix offline editing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayan committed May 13, 2013
1 parent e7f8326 commit de7deb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit de7deb7

Please sign in to comment.