Commit a3f72aaf authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

http://bugzilla.gnome.org/show_bug.cgi?id=88164 set locale to C before

2002-07-15  Andreas J. Guelzow <aguelzow@taliesin.ca>

	http://bugzilla.gnome.org/show_bug.cgi?id=88164
	* latex.c (latex2e_write_multicolumn_cell) : set locale to C before
	writing decimals (LaTeX assumes C locale).
parent 63579153
......@@ -7,7 +7,7 @@ Andreas:
even if the user did not want it cleared.
* Create ui to set protection of indiviual sheets.
* Make various edit actions check for locks first.
* Fix 85383, 84396.
* Fix 85383, 84396, 88164.
Jody:
* Have the stf dialog use the default font.
......
2002-07-15 Andreas J. Guelzow <aguelzow@taliesin.ca>
http://bugzilla.gnome.org/show_bug.cgi?id=88164
* latex.c (latex2e_write_multicolumn_cell) : set locale to C before
writing decimals (LaTeX assumes C locale).
2002-06-25 Andreas J. Guelzow <aguelzow@taliesin.ca>
http://bugzilla.gnome.org/show_bug.cgi?id=84396
......
......@@ -59,6 +59,7 @@
#include <errno.h>
#include <stdio.h>
#include <locale.h>
typedef enum {
LATEX_NO_BORDER = 0,
......@@ -639,9 +640,13 @@ latex2e_write_multicolumn_cell (FILE *fp, Cell const *cell, int num_merged_cols,
g = textColor->green;
b = textColor->blue;
}
if (r != 0 || g != 0 || b != 0)
if (r != 0 || g != 0 || b != 0) {
char *locale;
locale = setlocale (LC_NUMERIC, "C");
fprintf (fp, "{\\color[rgb]{%.2f,%.2f,%.2f} ",
(double)r/65535, (double)g/65535, (double)b/65535);
locale = setlocale (LC_NUMERIC, locale);
}
/* Establish the font's style for the styles that can be addressed by LaTeX.
* More complicated efforts (like changing fonts) are left to the user.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment