2010-06-17 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Thu, 17 Jun 2010 16:29:13 +0000 (16:29 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 17 Jun 2010 16:29:13 +0000 (16:29 -0000)
* DataConverter.cs: On bracketed cases, save the position as well,
like we do in the repeat case without brackets.  Fixes #595929

svn path=/trunk/mcs/; revision=159075

mcs/class/corlib/Mono/ChangeLog
mcs/class/corlib/Mono/DataConverter.cs

index bae12d1f9f070d4f944f7ce58c97cea29a68bb0f..f218ac2222779db074845dd96a7afd0c866c3e05 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-17  Miguel de Icaza  <miguel@novell.com>
+
+       * DataConverter.cs: On bracketed cases, save the position as well,
+       like we do in the repeat case without brackets.  Fixes #595929
+
 2010-03-07  Rodrigo Kumpera  <rkumpera@novell.com>
 
        * Runtime.cs: Document how NewObject() is meant to be used.
index d0bf0476f602cb04b521e2f24848f65a4a62eedf..a60337aebe5d3111042f4b90e3433eec0f20698c 100644 (file)
@@ -643,6 +643,7 @@ namespace Mono {
                                        if (count == -1)
                                                throw new ArgumentException ("invalid size specification");
                                        i = j;
+                                       save = i + 1;
                                        repeat = count;
                                        break;