From: skv Date: Wed, 17 Feb 2016 08:01:45 +0000 (+0300) Subject: 0023216: correct treatment of blank assembly names X-Git-Tag: V7_8_0a2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=80b714c3bbca8fa3acb9b7e65b436c6c86ff9261;p=modules%2Fgeom.git 0023216: correct treatment of blank assembly names --- diff --git a/src/STEPPlugin/STEPPlugin_ImportDriver.cxx b/src/STEPPlugin/STEPPlugin_ImportDriver.cxx index 1cf37959d..4dd581f99 100644 --- a/src/STEPPlugin/STEPPlugin_ImportDriver.cxx +++ b/src/STEPPlugin/STEPPlugin_ImportDriver.cxx @@ -357,9 +357,9 @@ namespace continue; } - if (aPDR->HasDescription() && aPDR->Description()->Length() >0) { + if (aPDR->HasDescription() && aPDR->Description()->UsefullLength() >0) { aName = aPDR->Description(); - } else if (!aPDR->Name().IsNull() && aPDR->Name()->Length() >0 ) { + } else if (!aPDR->Name().IsNull() && aPDR->Name()->UsefullLength() >0 ) { aName = aPDR->Name(); } else if (!aPDR->Id().IsNull()) { aName = aPDR->Id();