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 686480 - incorrect rendering of scientific format
incorrect rendering of scientific format
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-10-19 15:50 UTC by Emmanuel Pacaud
Modified: 2012-10-26 23:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Spreadsheet (41.44 KB, application/x-gnumeric)
2012-10-19 15:50 UTC, Emmanuel Pacaud
  Details
Tentative patch (1.23 KB, patch)
2012-10-20 00:53 UTC, Morten Welinder
none Details | Review

Description Emmanuel Pacaud 2012-10-19 15:50:50 UTC
Created attachment 226836 [details]
Spreadsheet

I have this file I've made in 2007, which doesn't display correctly the format of y axis labels. The format should be exponents.
Comment 1 Andreas J. Guelzow 2012-10-19 18:56:20 UTC
The format #.00EE0 is no longer recognized. Apparently one now has
#.00EE00 or #.00EE+0
Note that the former incorrectly renders as 3.14x10^0 ie. with only a single digit in the exponent.
Comment 2 Morten Welinder 2012-10-20 00:26:28 UTC
Looking at #.00EE00 first.

We're compiling it wrong.  We generate this for #.00EE00

...
OP_NUM_PRINTF_F 0
OP_NUM_SIGN
OP_NUM_EXPONENT_SIGN 0
OP_NUM_MOVETO_ONES
OP_NUM_STORE_POS
OP_NUM_DIGIT_1 '0'                       <-- One only
OP_NUM_REST_WHOLE
OP_NUM_APPEND_MODE
OP_NUM_SIMPLIFY_MARKUP_MANTISSA

whereas for #.00E+00 (single-E) we generate

...
OP_NUM_PRINTF_F 0
OP_NUM_SIGN
OP_NUM_EXPONENT_SIGN 1
OP_NUM_MOVETO_ONES
OP_NUM_STORE_POS
OP_NUM_DIGIT_1 '0'                       <-- Two!
OP_NUM_DIGIT_1 '0'
OP_NUM_REST_WHOLE
OP_NUM_APPEND_MODE
Comment 3 Morten Welinder 2012-10-20 00:53:18 UTC
Created attachment 226864 [details] [review]
Tentative patch

We need some kind of tests for this.
Comment 4 Morten Welinder 2012-10-26 23:31:56 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.