Skip to content

SI unit length metric without prefix should be valid #34

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
SI unit for metric length should be valid even if there is no "IfcSIPrefix" as 
it is optional. If it is not there then unit scale factor of 1.0 should be 
valid.

In UnitConvrter.cpp in function 
void UnitConverter::setIfcProject(shared_ptr<IfcProject> project)()
{
..
..
..
if( unit_type->m_enum == IfcUnitEnum::ENUM_LENGTHUNIT )
{
    if( si_unit->m_Prefix )
   {
    ...
    ...
     length_factor_found = true;  // Move this outside of this scope
   }

  length_factor_found = true;  // Should be here
}
..
..
..
}


..
..
..
}

Original issue reported on code.google.com by [email protected] on 8 Jan 2015 at 3:58

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions