]> Pileus Git - ~andy/gtk/commitdiff
Fix braino, actually do check each char, not just the first one, when
authorTor Lillqvist <tml@iki.fi>
Wed, 4 Sep 2002 21:14:37 +0000 (21:14 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 4 Sep 2002 21:14:37 +0000 (21:14 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/win32/gdkproperty-win32.c

index 9aa09e3484f0cd2ec35e2ffaa621bd407702feb4..2a610dc386e9e03bd460f4bb08cbf3252cb89d3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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): 
index 9aa09e3484f0cd2ec35e2ffaa621bd407702feb4..2a610dc386e9e03bd460f4bb08cbf3252cb89d3f 100644 (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): 
index 9aa09e3484f0cd2ec35e2ffaa621bd407702feb4..2a610dc386e9e03bd460f4bb08cbf3252cb89d3f 100644 (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): 
index 9aa09e3484f0cd2ec35e2ffaa621bd407702feb4..2a610dc386e9e03bd460f4bb08cbf3252cb89d3f 100644 (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): 
index 9aa09e3484f0cd2ec35e2ffaa621bd407702feb4..2a610dc386e9e03bd460f4bb08cbf3252cb89d3f 100644 (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): 
index 9aa09e3484f0cd2ec35e2ffaa621bd407702feb4..2a610dc386e9e03bd460f4bb08cbf3252cb89d3f 100644 (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): 
index 3fce0f48ba86384c37aca6206cfdd6784181f62c..d92cb3b6c3a0b60360abbc3dce153f56fb2ddd6c 100644 (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];
            }