Commit bbb3172d authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

plug-ins/script-fu/interp_slib.c patch from Pedro Gimeno to fix printing

2003-03-29  Manish Singh  <yosh@gimp.org>

        * plug-ins/script-fu/interp_slib.c
        * plug-ins/script-fu/interp_sliba.c: patch from Pedro Gimeno to fix
        printing of floating point numbers in script-fu. (Bug #109505)
parent 6a29d477
2003-03-29 Manish Singh <yosh@gimp.org>
* plug-ins/script-fu/interp_slib.c
* plug-ins/script-fu/interp_sliba.c: patch from Pedro Gimeno to fix
printing of floating point numbers in script-fu. (Bug #109505)
2003-03-29 Simon Budig <simon@gimp.org>
 
* app/tools/gimpvectortool.[ch]
......@@ -2711,7 +2711,7 @@ lprin1g (LISP exp, struct gen_printio * f)
if (((double) n) == FLONM (exp))
sprintf (tkbuffer, "%ld", n);
else
g_ascii_formatd (tkbuffer, sizeof(tkbuffer), "%g", FLONM (exp));
g_ascii_formatd (tkbuffer, TKBUFFERN, "%g", FLONM (exp));
gput_st (f, tkbuffer);
break;
case tc_symbol:
......
......@@ -168,7 +168,7 @@ array_prin1 (LISP ptr, struct gen_printio *f)
gput_st (f, "#(");
for (j = 0; j < ptr->storage_as.double_array.dim; ++j)
{
g_ascii_formatd (tkbuffer, sizeof(tkbuffer), "%g",
g_ascii_formatd (tkbuffer, TKBUFFERN, "%g",
ptr->storage_as.double_array.data[j]);
gput_st (f, tkbuffer);
if ((j + 1) < ptr->storage_as.double_array.dim)
......
......@@ -2711,7 +2711,7 @@ lprin1g (LISP exp, struct gen_printio * f)
if (((double) n) == FLONM (exp))
sprintf (tkbuffer, "%ld", n);
else
g_ascii_formatd (tkbuffer, sizeof(tkbuffer), "%g", FLONM (exp));
g_ascii_formatd (tkbuffer, TKBUFFERN, "%g", FLONM (exp));
gput_st (f, tkbuffer);
break;
case tc_symbol:
......
......@@ -168,7 +168,7 @@ array_prin1 (LISP ptr, struct gen_printio *f)
gput_st (f, "#(");
for (j = 0; j < ptr->storage_as.double_array.dim; ++j)
{
g_ascii_formatd (tkbuffer, sizeof(tkbuffer), "%g",
g_ascii_formatd (tkbuffer, TKBUFFERN, "%g",
ptr->storage_as.double_array.data[j]);
gput_st (f, tkbuffer);
if ((j + 1) < ptr->storage_as.double_array.dim)
......
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