]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL52544: TC7.5.0: Import XAO file crash application
authorvsr <vsr@opencascade.com>
Wed, 22 Oct 2014 15:30:45 +0000 (19:30 +0400)
committervsr <vsr@opencascade.com>
Wed, 22 Oct 2014 15:30:45 +0000 (19:30 +0400)
src/XAO/XAO_XaoExporter.cxx

index f8229318a4a60b41a05d532f6eb893048a0597fe..c3114ff671a4c26b21de786d764ba632e62cc2c8 100644 (file)
@@ -317,7 +317,7 @@ namespace {
   {
     std::string version = readStringProp(xaoNode, C_ATTR_XAO_VERSION, false, "");
     if (version != "")
-        xaoObject->setAuthor(version);
+        xaoObject->setVersion(version);
 
     std::string author = readStringProp(xaoNode, C_ATTR_XAO_AUTHOR, false, "");
     xaoObject->setAuthor(author);
@@ -592,7 +592,7 @@ namespace {
             int component = readIntegerProp(valNode, C_ATTR_VALUE_COMPONENT, true, -1);
             xmlChar* data = xmlNodeGetContent(valNode->children);
 
-            std::string value = (char*)data;
+            std::string value;
             if (data != NULL)
             {
                 value = (char*)data;