mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 10:10:34 +05:00
IPAL52544: TC7.5.0: Import XAO file crash application
This commit is contained in:
parent
62283977ac
commit
bd37ceaf56
@ -317,7 +317,7 @@ namespace {
|
|||||||
{
|
{
|
||||||
std::string version = readStringProp(xaoNode, C_ATTR_XAO_VERSION, false, "");
|
std::string version = readStringProp(xaoNode, C_ATTR_XAO_VERSION, false, "");
|
||||||
if (version != "")
|
if (version != "")
|
||||||
xaoObject->setAuthor(version);
|
xaoObject->setVersion(version);
|
||||||
|
|
||||||
std::string author = readStringProp(xaoNode, C_ATTR_XAO_AUTHOR, false, "");
|
std::string author = readStringProp(xaoNode, C_ATTR_XAO_AUTHOR, false, "");
|
||||||
xaoObject->setAuthor(author);
|
xaoObject->setAuthor(author);
|
||||||
@ -592,7 +592,7 @@ namespace {
|
|||||||
int component = readIntegerProp(valNode, C_ATTR_VALUE_COMPONENT, true, -1);
|
int component = readIntegerProp(valNode, C_ATTR_VALUE_COMPONENT, true, -1);
|
||||||
xmlChar* data = xmlNodeGetContent(valNode->children);
|
xmlChar* data = xmlNodeGetContent(valNode->children);
|
||||||
|
|
||||||
std::string value = (char*)data;
|
std::string value;
|
||||||
if (data != NULL)
|
if (data != NULL)
|
||||||
{
|
{
|
||||||
value = (char*)data;
|
value = (char*)data;
|
||||||
|
Loading…
Reference in New Issue
Block a user