Skip to content
Permalink
Browse files

Fix wrong mapping of feature ids in offline editing

Fix #14727
  • Loading branch information
m-kuhn committed Jul 11, 2016
1 parent 73bf82f commit 7a27ef2b84788db35e7e9e7177c040c1e1cd4ea5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsofflineediting.cpp
@@ -656,11 +656,11 @@ QgsVectorLayer* QgsOfflineEditing::copyVectorLayer( QgsVectorLayer* layer, sqlit
// Check if the online feature has been fetched (WFS download aborted for some reason)
if ( i < offlineFeatureIds.count() )
{
addFidLookup( db, layerId, offlineFeatureIds.at( i ), remoteFeatureIds.at( remoteCount - ( i + 1 ) ) );
addFidLookup( db, layerId, offlineFeatureIds.at( i ), remoteFeatureIds.at( i ) );
}
else
{
showWarning( QString( "Feature cannot be copied to the offline layer, please check if the online layer '%1' is sill accessible." ).arg( layer->name() ) );
showWarning( tr( "Feature cannot be copied to the offline layer, please check if the online layer '%1' is still accessible." ).arg( layer->name() ) );
return nullptr;
}
emit progressUpdated( featureCount++ );

0 comments on commit 7a27ef2

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