After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 422972 - Form does not show any decimals for floating point types
Form does not show any decimals for floating point types
Status: RESOLVED FIXED
Product: libgnomedb
Classification: Deprecated
Component: widgets
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-26 12:13 UTC by Armin Burgmeier
Modified: 2007-03-26 18:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.11 KB, patch)
2007-03-26 12:15 UTC, Armin Burgmeier
none Details | Review

Description Armin Burgmeier 2007-03-26 12:13:02 UTC
To reproduce, just have a look at the read-only form example in gnome-db-demo. The 'price' field has a floating point type but does not show any decimals.
Comment 1 Armin Burgmeier 2007-03-26 12:15:00 UTC
Created attachment 85317 [details] [review]
Proposed patch

This initializes the n_decimals field in the string entry to -1 instead of 0. This way, it does what the comment behind says, namely not restricting the number of decimals, instead of setting them to 0.
Comment 2 Murray Cumming 2007-03-26 18:42:28 UTC
Seems like a simple fix. Please go ahead.
Comment 3 Armin Burgmeier 2007-03-26 18:51:39 UTC
Committed.