Bug report #6902
"Merge selected features" leads to data loss and crash (in master)
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||16027|
Pick a vector layer,
select two features and try the "merge selected features" tool.
QGIS will ask you column by column if you want to keep the attribute of the first feature or if the one of the second feature.
If the column is of a numeric type, then a few more options are available, as sum, min, max, etc.
It seems anyway that this functions to always return a decimal number, and if the column is of type integer then the computed values is LOST (it becomes 0) when the edits are saved. This happens in QGIS 1.8.
In master is the same, but actually after merging the feature if the user try open the table of attributes QGIS will crash.
tested on Windows for now, will do also on linux.
#3 Updated by Marco Francesco De Paolini over 9 years ago
- File Screen_Shot_2013-05-09_at_10.25.22.png added
May be related: sometimes when selecting two features with identical fields values and try the "merge selected features", it appears to select different random features in the Merge feature attributes window. Not sure how to replicate this issue.