mirror of https://github.com/GNOME/gimp.git
fixed UTF-8 check.
2003-07-30 Michael Natterer <mitch@gimp.org> * tools/pdbgen/app.pl: fixed UTF-8 check. * app/pdb/text_tool_cmds.c: regenerated.
This commit is contained in:
parent
0756a06d46
commit
f23762ce56
|
@ -1,3 +1,9 @@
|
|||
2003-07-30 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* tools/pdbgen/app.pl: fixed UTF-8 check.
|
||||
|
||||
* app/pdb/text_tool_cmds.c: regenerated.
|
||||
|
||||
2003-07-30 Dave Neary <bolsh@gimp.org>
|
||||
|
||||
plug-ins/common/edge.c: Trivial clean-up.
|
||||
|
|
|
@ -81,7 +81,7 @@ text_fontname_invoker (Gimp *gimp,
|
|||
y = args[3].value.pdb_float;
|
||||
|
||||
text = (gchar *) args[4].value.pdb_pointer;
|
||||
if (text == NULL && !g_utf8_validate (text, -1, NULL))
|
||||
if (text == NULL || !g_utf8_validate (text, -1, NULL))
|
||||
success = FALSE;
|
||||
|
||||
border = args[5].value.pdb_int;
|
||||
|
@ -218,7 +218,7 @@ text_get_extents_fontname_invoker (Gimp *gimp,
|
|||
gchar *real_fontname;
|
||||
|
||||
text = (gchar *) args[0].value.pdb_pointer;
|
||||
if (text == NULL && !g_utf8_validate (text, -1, NULL))
|
||||
if (text == NULL || !g_utf8_validate (text, -1, NULL))
|
||||
success = FALSE;
|
||||
|
||||
size = args[1].value.pdb_float;
|
||||
|
@ -358,7 +358,7 @@ text_invoker (Gimp *gimp,
|
|||
y = args[3].value.pdb_float;
|
||||
|
||||
text = (gchar *) args[4].value.pdb_pointer;
|
||||
if (text == NULL && !g_utf8_validate (text, -1, NULL))
|
||||
if (text == NULL || !g_utf8_validate (text, -1, NULL))
|
||||
success = FALSE;
|
||||
|
||||
border = args[5].value.pdb_int;
|
||||
|
@ -566,7 +566,7 @@ text_get_extents_invoker (Gimp *gimp,
|
|||
gchar *real_fontname;
|
||||
|
||||
text = (gchar *) args[0].value.pdb_pointer;
|
||||
if (text == NULL && !g_utf8_validate (text, -1, NULL))
|
||||
if (text == NULL || !g_utf8_validate (text, -1, NULL))
|
||||
success = FALSE;
|
||||
|
||||
size = args[1].value.pdb_float;
|
||||
|
|
|
@ -259,7 +259,7 @@ sub marshal_inargs {
|
|||
if ($_->{utf8}) {
|
||||
$reverse = sub { ${$_[0]} =~ s/!//;
|
||||
${$_[0]} =~ s/==/!=/ };
|
||||
$test = "$var == NULL && " .
|
||||
$test = "$var == NULL || " .
|
||||
"!g_utf8_validate ($var, -1, NULL)"
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue