]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023216: correct treatment of blank assembly names
authorskv <skv@opencascade.com>
Wed, 17 Feb 2016 08:01:45 +0000 (11:01 +0300)
committerskv <skv@opencascade.com>
Wed, 17 Feb 2016 08:01:45 +0000 (11:01 +0300)
src/STEPPlugin/STEPPlugin_ImportDriver.cxx

index 1cf37959d7eba4502be09f39ba7a7248f41f8497..4dd581f99ff009f7f456687e2a6ab83c5c9d1aa1 100644 (file)
@@ -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();