mirror of https://github.com/GNOME/gimp.git
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:
parent
2c795c3da8
commit
6ac39445b9
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue