From: vsr Date: Wed, 22 Oct 2014 15:30:45 +0000 (+0400) Subject: IPAL52544: TC7.5.0: Import XAO file crash application X-Git-Tag: V7_5_0b1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd37ceaf56495d65195171f7e6d419ced7e3ef57;p=modules%2Fgeom.git IPAL52544: TC7.5.0: Import XAO file crash application --- diff --git a/src/XAO/XAO_XaoExporter.cxx b/src/XAO/XAO_XaoExporter.cxx index f8229318a..c3114ff67 100644 --- a/src/XAO/XAO_XaoExporter.cxx +++ b/src/XAO/XAO_XaoExporter.cxx @@ -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;