diff options
author | Tor Lillqvist <tml@iki.fi> | 2002-09-04 21:14:37 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2002-09-04 21:14:37 +0000 |
commit | 234acfd024ea556896beb77923508eab9165694f (patch) | |
tree | 29e8a3978f1ac01263dbff0ebaeec55f37e66645 /gdk | |
parent | 752cd443daec11b1fcfdc43fa582314e52ccc400 (diff) | |
download | gtk+-234acfd024ea556896beb77923508eab9165694f.tar.gz |
Fix braino, actually do check each char, not just the first one, when
2002-09-05 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkproperty-win32.c (gdk_property_change): Fix braino,
actually do check each char, not just the first one, when looping
through the text looking to insert CR in front of each LF. Bug
noticed and fix provided by Florent Duguet.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkproperty-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/win32/gdkproperty-win32.c b/gdk/win32/gdkproperty-win32.c index 3fce0f48ba..d92cb3b6c3 100644 --- a/gdk/win32/gdkproperty-win32.c +++ b/gdk/win32/gdkproperty-win32.c @@ -391,7 +391,7 @@ gdk_property_change (GdkWindow *window, cf = CF_TEXT; for (i = 0; i < nelements; i++) { - if (*data == '\n') + if (data[i] == '\n') *ucptr++ = '\r'; *ucptr++ = data[i]; } |