Bug report #12985
Shapefile: The length of real type field is reduced by 1 every save
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21063|
I just ran my QGIS tester plugin, and saw two test failed. Both tests are about input/output of shapefile and they are almost same. They load a set of shapefile and save it to another file set and examine whether the both file sets are identical. The result says that output dbf is not same as input dbf.
I looked at the shapefiles in QGIS, and saw that the length of real type field of output shapefile is less than that of the input by 1.
length, precision Input : 7, 2 Output: 6, 2
In addition, I saved the output shapefile to another shapefile and then the length of the real type field decreased to 5. This is real problem!
Test data (shapefile): https://github.com/minorua/QGISTesterA/tree/master/tests/data
QGIS master 2798ab0. With QGIS 2.8.2, no tests fail.