GNOME Bugzilla – Bug 422979
FormatEntry resets decimals when editing floating point values
Last modified: 2007-03-30 07:40:25 UTC
When setting the decimal places in a FormatEntry to something other than -1 (unlimited), gnome_db_format_entry_set_text() discards the values of the decimal places and makes them zero. This causes fields with decimals to lose the decimal places when navigating around in a GnomeDbForm.
Created attachment 85319 [details] Testcase I tried to patch this, but the FormatEntry code is rather complicated and I was unable to quickly find the responsible piece of code. So I created a simple testcase that shows the misbehaviour.
Created attachment 85375 [details] [review] Proposed correction To test
If it's Ok, I'll commit it ASAP.
Works for me. Thanks.
Ok, then I'll commit the patch ASAP.