-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGIS 3 Vector Layer Fields Garbled when Clicking the Toggle Editing Icon #25773
Comments
Author Name: Jérôme Guélat (Jérôme Guélat) I can confirm this issue. And it looks like a regression since it's not happening with QGIS 2.18.15... |
Author Name: Tom Chadwin (@tomchadwin) Confirmed in c91e33d. Exiting layer edit without saving changes restores the row. Interestingly, if you then enable editing again (without having closed the attribute table), the corruption does not occur. |
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Alessandro Pasotti (@elpaso) one of the root causes is that the form value of the second "double" field is set to NULL, even when editing is disabled (see attachment)
|
Author Name: Alessandro Pasotti (@elpaso) Ok, I've probably found the issue with NULLs and I'll commit a patch soon, but I think we have another separate issue here that is the precision of the numeric floating point fields. It is set to 0 by default that in code is implemented like leave the widget its own default that is 2 decimal positions. I didn't try very hard, but I've not found an easy way to change it from the layer properties. Would you mind filing a separate bug to discuss the precision issue? I'm not sure about what the expected outcome should be, I think it would make sense to have more decimal places by default (like 6) and definitely there must be a way to configure that in the field configuration of the layer properties.
|
Author Name: Calvin Hamilton (Calvin Hamilton) One thing I also have noticed is that when in editing mode, if you select a row from the Attribute Table and click the "Delete selected features" icon, it deletes two rows and not just the selected row. Do you get the same results? |
Author Name: Alessandro Pasotti (@elpaso) No, I can't reproduce the delete issue, but please, file a separate ticket for separate problems. |
Author Name: Anónimo (Anónimo) Applied in changeset ab607ce.
|
Author Name: Calvin Hamilton (Calvin Hamilton) I just tested this today and it is not quite fixed although the behavior has changed. There are two issues that I see:
|
Author Name: Calvin Hamilton (Calvin Hamilton) Note the example image for problem #2 is bad_data.jpg. |
Author Name: Alessandro Pasotti (@elpaso) Yes, I've only fixed one of the series of bugs that you are reporting, which is the NULL issue on negative values (I think you called it "garble"). |
Author Name: Calvin Hamilton (Calvin Hamilton) I will open another ticket for the issue #2 and will try to be more precise. Thanks for all your work on this. |
Author Name: Calvin Hamilton (Calvin Hamilton) Here is the new ticket #25903 |
Author Name: Anónimo (Anónimo) Applied in changeset c50e1bf.
|
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Alessandro Pasotti (@elpaso) Please test the latest commits, all tests should be done with a new project because the default widgets for fields have changed.
|
Author Name: Calvin Hamilton (Calvin Hamilton) That seems to have resolved the issue. |
Author Name: Calvin Hamilton (Calvin Hamilton)
Original Redmine Issue: 17878
Affected QGIS version: master
Redmine category:attribute_table
Assignee: Alessandro Pasotti
QGIS Version: 2.99.0-268
Attached is a sample geopackage file. Load the file into QGIS. Open the Attribute Table. Now click on the "Toggle Editing" toolbar icon. Watch the attribute table. For me, the first entry immediately becomes garbled. See the before and after images.
Related issue(s): #25756 (relates)
Redmine related issue(s): 17861
The text was updated successfully, but these errors were encountered: