Author: jackson
Date: 2007-07-12 12:39:07 -0400 (Thu, 12 Jul 2007)
New Revision: 81882

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/xaml.cpp
Log:

                * xaml.cpp: Restart the whole attribute parsing loop
                * when the
        reparse flag is set, otherwise the first attribute will be
        skipped.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-07-12 16:25:18 UTC (rev 81881)
+++ trunk/moon/src/ChangeLog    2007-07-12 16:39:07 UTC (rev 81882)
@@ -1,3 +1,9 @@
+2007-07-12  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * xaml.cpp: Restart the whole attribute parsing loop when the
+       reparse flag is set, otherwise the first attribute will be
+       skipped.
+
 2007-07-11  Chris Toshok  <[EMAIL PROTECTED]>
 
        * uielement.cpp (UIElement::UIElement): the event names need to

Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp     2007-07-12 16:25:18 UTC (rev 81881)
+++ trunk/moon/src/xaml.cpp     2007-07-12 16:39:07 UTC (rev 81882)
@@ -2035,6 +2035,8 @@
 dependency_object_set_attributes (XamlParserInfo *p, XamlElementInstance 
*item, const char **attr)
 {
        int skip_attribute = -1;
+
+start_parse:
        for (int i = 0; attr [i]; i += 2) {
 
                if (i == skip_attribute)
@@ -2064,6 +2066,7 @@
                        if (reparse) {
                                skip_attribute = i;
                                i = 0;
+                               goto start_parse;
                        }
                        continue;
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to