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 568860 - Spreadsheet colored text appears black on latex export
Spreadsheet colored text appears black on latex export
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export other
git master
Other All
: Normal minor
: ---
Assigned To: Morten Welinder
Jody Goldberg
: 572629 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-23 15:40 UTC by fhcarron
Modified: 2009-02-21 13:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description fhcarron 2009-01-23 15:40:27 UTC
When a spreadsheet is 'saved as' latex 2e, any colored text will be black on the saved file. However, the appropriate latex construct for colored text is output, only with null values:

\color[rgb]{0.00,0.00,0.00}
Comment 1 Morten Welinder 2009-01-23 16:03:38 UTC
Andreas?  this would appear to be in plugins/html/latex.c which says...

			gsf_output_printf (output, "{\\color[rgb]{%.2f,%.2f,%.2f} ",
				 (double)r/65535, (double)g/65535, (double)b/65535);

Since UINT_RGBA_R is defined as
    #define UINT_RGBA_R(x) (((guint)(x))>>24)

it appears that "(double)r/65535" should have been "r/255.0" etc.
Comment 2 Andreas J. Guelzow 2009-01-23 16:21:01 UTC
Morten:
You mean like in print-cell.c?!

You ae of course right.
Comment 3 Morten Welinder 2009-01-23 17:58:48 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.
Comment 4 Morten Welinder 2009-02-21 13:46:05 UTC
*** Bug 572629 has been marked as a duplicate of this bug. ***