fix SF_ADJUSTMENT handling when crafting the string to call, since it now

2003-10-08  Manish Singh  <yosh@gimp.org>

        * plug-ins/script-fu/script-fu-scripts.c: fix SF_ADJUSTMENT handling
        when crafting the string to call, since it now gets a GIMP_PDB_FLOAT.
        (This bug has been there since 1.3.4...)
This commit is contained in:
Manish Singh 2003-10-09 03:53:54 +00:00 committed by Manish Singh
parent 2c795c3da8
commit 6ac39445b9
3 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2003-10-08 Manish Singh <yosh@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c: fix SF_ADJUSTMENT handling
when crafting the string to call, since it now gets a GIMP_PDB_FLOAT.
(This bug has been there since 1.3.4...)
2003-10-08 Manish Singh <yosh@gimp.org>
* plug-ins/common/png.c: fix handling and docs of offs, phys, and time

View File

@ -833,7 +833,7 @@ script_fu_script_proc (const gchar *name,
break;
case SF_ADJUSTMENT:
length += strlen (params[i + 1].data.d_string) + 1;
length += G_ASCII_DTOSTR_BUF_SIZE;
break;
case SF_FONT:
@ -902,7 +902,8 @@ script_fu_script_proc (const gchar *name,
break;
case SF_ADJUSTMENT:
text = params[i + 1].data.d_string;
text = g_ascii_dtostr (buffer, sizeof (buffer),
params[i + 1].data.d_float);
break;
case SF_FONT:
@ -1596,7 +1597,7 @@ script_fu_ok_callback (GtkWidget *widget,
break;
case SF_ADJUSTMENT:
length += 24; /* Maximum size of float value */
length += G_ASCII_DTOSTR_BUF_SIZE;
break;
case SF_FILENAME:

View File

@ -833,7 +833,7 @@ script_fu_script_proc (const gchar *name,
break;
case SF_ADJUSTMENT:
length += strlen (params[i + 1].data.d_string) + 1;
length += G_ASCII_DTOSTR_BUF_SIZE;
break;
case SF_FONT:
@ -902,7 +902,8 @@ script_fu_script_proc (const gchar *name,
break;
case SF_ADJUSTMENT:
text = params[i + 1].data.d_string;
text = g_ascii_dtostr (buffer, sizeof (buffer),
params[i + 1].data.d_float);
break;
case SF_FONT:
@ -1596,7 +1597,7 @@ script_fu_ok_callback (GtkWidget *widget,
break;
case SF_ADJUSTMENT:
length += 24; /* Maximum size of float value */
length += G_ASCII_DTOSTR_BUF_SIZE;
break;
case SF_FILENAME: