void DDS_DicGroup::FillDataMap( const LDOM_Element& theComponentData, const LDOM_Element& theDocElement )
{
- TColStd_SequenceOfAsciiString unitSystems;
-
TCollection_AsciiString aCompName = theComponentData.getAttribute( DDS_Dictionary::KeyWord( "COMPONENT_NAME" ) );
LDOM_Element systems = theComponentData.GetChildByTagName( DDS_Dictionary::KeyWord( "UNIT_SYSTEMS" ) );
if ( !myUnitSystem.IsBound( aName ) )
myUnitSystem.Bind( aName, aLabel );
-
- unitSystems.Append( aName );
}
}
myUnitSystem.Bind( UNIT_SYSTEM_SI, TCollection_ExtendedString( "System international" ) );
}
+ TColStd_SequenceOfAsciiString unitSystems;
+ GetUnitSystems( unitSystems );
+
LDOM_NodeList aData = theComponentData.getElementsByTagName( DDS_Dictionary::KeyWord( "DATUM" ) );
if ( !aData.getLength() )
return;
TCollection_AsciiString aBaseKeyWord = DDS_Dictionary::KeyWord( "DATUM_UNITS" );
- for ( Standard_Integer j = 0; j < theSystems.Length(); j++ )
+ for ( Standard_Integer j = 1; j <= theSystems.Length(); j++ )
{
UnitSystem anUnitSystem = theSystems.Value( j );
if ( !anUnitSystem.Length() )