[gxml/serialization] Fixed deserialization get Element content



commit 2a33ba7efc0dabecdf8b0444a99b7760f9f0e9c5
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue Jul 30 14:48:29 2013 -0500

    Fixed deserialization get Element content

 gxml/Serializable.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gxml/Serializable.vala b/gxml/Serializable.vala
index a77dfc2..276145e 100644
--- a/gxml/Serializable.vala
+++ b/gxml/Serializable.vala
@@ -221,9 +221,9 @@ namespace GXml {
                                        GLib.message (@"Deseralizing Element: $(n.node_name)");
                                        deserialize_property (n);
                                }
-                               if (serialized_xml_node_value != null)
-                                       element.content = serialized_xml_node_value;
                        }
+                       if (element.content != null)
+                                       serialized_xml_node_value = element.content;
                        return null;
                }
                /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]