0023216: correct treatment of blank assembly names

This commit is contained in:
skv 2016-02-17 11:01:45 +03:00
parent 9361e2c00a
commit 80b714c3bb

View File

@ -357,9 +357,9 @@ namespace
continue; continue;
} }
if (aPDR->HasDescription() && aPDR->Description()->Length() >0) { if (aPDR->HasDescription() && aPDR->Description()->UsefullLength() >0) {
aName = aPDR->Description(); aName = aPDR->Description();
} else if (!aPDR->Name().IsNull() && aPDR->Name()->Length() >0 ) { } else if (!aPDR->Name().IsNull() && aPDR->Name()->UsefullLength() >0 ) {
aName = aPDR->Name(); aName = aPDR->Name();
} else if (!aPDR->Id().IsNull()) { } else if (!aPDR->Id().IsNull()) {
aName = aPDR->Id(); aName = aPDR->Id();