mirror of https://github.com/GNOME/gimp.git
A minor optimization. Don't bother to store normalized string.
2006-11-17 Kevin Cozens <kcozens@cvs.gnome.org> * plug-ins/script-fu/tinyscheme/scheme.c (store_string): A minor optimization. Don't bother to store normalized string.
This commit is contained in:
parent
3240f87208
commit
59ee708f7f
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2006-11-16 Kevin Cozens <kcozens@cvs.gnome.org>
|
||||
|
||||
* plug-ins/script-fu/tinyscheme/scheme.c (store_string): A minor
|
||||
optimization. Don't bother to store normalized string.
|
||||
|
||||
2006-11-16 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
Made all brushes scalable from the tool options. So far only
|
||||
downscaling is supported since we lack an algorithm for bitmap
|
||||
brush upscaling. Addresses bug #65030.
|
||||
2006-11-16 Simon Budig <simon@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/gimpfu.py: added PF_VECTORS type.
|
||||
|
|
|
@ -918,11 +918,10 @@ static pointer mk_number(scheme *sc, num n) {
|
|||
static char *store_string(scheme *sc, int char_cnt,
|
||||
const char *str, gunichar fill) {
|
||||
int len;
|
||||
char utf8[7];
|
||||
int i;
|
||||
gchar utf8[7];
|
||||
gchar *q;
|
||||
gchar *q2;
|
||||
gchar *q3;
|
||||
int i;
|
||||
|
||||
if(str!=0) {
|
||||
q2 = g_utf8_offset_to_pointer(str, (long)char_cnt);
|
||||
|
@ -942,10 +941,8 @@ static char *store_string(scheme *sc, int char_cnt,
|
|||
return sc->strbuff;
|
||||
}
|
||||
if(str!=0) {
|
||||
q3 = g_utf8_normalize(str, len, G_NORMALIZE_DEFAULT_COMPOSE);
|
||||
memcpy(q, q3, len);
|
||||
memcpy(q, str, len);
|
||||
q[len]=0;
|
||||
g_free (q3);
|
||||
} else {
|
||||
q2 = q;
|
||||
for (i = 0; i < char_cnt; ++i)
|
||||
|
|
Loading…
Reference in New Issue