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.
This commit is contained in:
Tor Lillqvist 2002-09-04 21:14:37 +00:00 committed by Tor Lillqvist
parent 752cd443da
commit 234acfd024
7 changed files with 43 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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.
2002-09-04 Matthias Clasen <maclas@gmx.de>
* demos/testanimation.c (do_image):

View File

@ -1,3 +1,10 @@
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.
2002-09-04 Matthias Clasen <maclas@gmx.de>
* demos/testanimation.c (do_image):

View File

@ -1,3 +1,10 @@
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.
2002-09-04 Matthias Clasen <maclas@gmx.de>
* demos/testanimation.c (do_image):

View File

@ -1,3 +1,10 @@
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.
2002-09-04 Matthias Clasen <maclas@gmx.de>
* demos/testanimation.c (do_image):

View File

@ -1,3 +1,10 @@
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.
2002-09-04 Matthias Clasen <maclas@gmx.de>
* demos/testanimation.c (do_image):

View File

@ -1,3 +1,10 @@
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.
2002-09-04 Matthias Clasen <maclas@gmx.de>
* demos/testanimation.c (do_image):

View File

@ -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];
}