if(mytks.Extent())
{
Standard_Integer i, uidx = myuds.FindIndex(aunit);
+ if ( uidx == 0 ) {
+ // aunit is not in the list -> certainly a toolkit ; so return aunit
+ result = aunit ;
+ } else {
for(i=mymatrix->LowerRow(); i<=mymatrix->UpperRow(); i++)
{
}
}
}
+ }
+
}
+
return result;
}
Handle(TCollection_HAsciiString) current = TheUnit->Name();
mytreated.Add(current);
-
Handle(TCollection_HAsciiString) curtk = GetTKForUnit(current);
-
if(!curtk.IsNull())
{
// gerer l'apparition de ce TK
afile -> File () -> Nesting ()
);
Handle( TCollection_HAsciiString ) current = TheUnit -> Name ();
- Handle( TCollection_HAsciiString ) curtk = GetTKForUnit ( current );
+ Handle( TCollection_HAsciiString ) curtk = GetTKForUnit ( current );
Handle( TCollection_HAsciiString ) libname = curtk.IsNull () ? current : curtk;
if ( !mytreated.Contains ( libname ) ) {
#endif // WNT
{
Handle(WOKernel_DevUnit) TheUnit = Unit()->Session()->GetDevUnit(afile->File()->Nesting());
- Handle(TCollection_HAsciiString) atk = GetTKForUnit(TheUnit->Name());
-
+ Handle(TCollection_HAsciiString) atk = TheUnit->Name() ;
if(!atk.IsNull())
{
mydirecttks.Add(atk);