Skip to content

Commit de7deb7

Browse files
committed
fix offline editing plugin
1 parent e7f8326 commit de7deb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsofflineediting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ void QgsOfflineEditing::copyVectorLayer( QgsVectorLayer* layer, sqlite3* db, con
522522
// NOTE: Spatialite provider ignores position of geometry column
523523
// fill gap in QgsAttributeMap if geometry column is not last (WORKAROUND)
524524
int column = 0;
525-
QgsAttributes newAttrs;
526525
QgsAttributes attrs = f.attributes();
526+
QgsAttributes newAttrs(attrs.count());
527527
for ( int it = 0; it < attrs.count(); ++it )
528528
{
529529
newAttrs[column++] = attrs[it];

0 commit comments

Comments
 (0)