gnumeric r17084 - in trunk: . plugins/html



Author: mortenw
Date: Fri Jan 23 17:58:42 2009
New Revision: 17084
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17084&view=rev

Log:
2009-01-23  Morten Welinder  <terra gnome org>

	* latex.c (latex2e_write_multicolumn_cell): Fix scale of colour
	components.  Fixes #568860.



Modified:
   trunk/NEWS
   trunk/plugins/html/ChangeLog
   trunk/plugins/html/latex.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Fri Jan 23 17:58:42 2009
@@ -75,6 +75,7 @@
 	* Don't evaluate both branches of IF.  [#326595]
 	* Fix undo crash for inter-workbook operations.  [#568634]
 	* Fix crash and criticals in dbf import.  [#568454]
+	* Fix colour problem in LaTeX export.  [#568860]
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.3

Modified: trunk/plugins/html/latex.c
==============================================================================
--- trunk/plugins/html/latex.c	(original)
+++ trunk/plugins/html/latex.c	Fri Jan 23 17:58:42 2009
@@ -988,7 +988,7 @@
 			char *locale;
 			locale = setlocale (LC_NUMERIC, "C");
 			gsf_output_printf (output, "{\\color[rgb]{%.2f,%.2f,%.2f} ",
-				 (double)r/65535, (double)g/65535, (double)b/65535);
+					   r/255.0, g/255.0, b/255.0);
 			locale = setlocale (LC_NUMERIC, locale);
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]