Skip to content

Commit

Permalink
Fix wrong mapping of feature ids in offline editing
Browse files Browse the repository at this point in the history
Fix #14727
  • Loading branch information
m-kuhn committed Jul 11, 2016
1 parent 73bf82f commit 7a27ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsofflineediting.cpp
Expand Up @@ -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++ );
Expand Down

0 comments on commit 7a27ef2

Please sign in to comment.