mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Fix assertion. Closes #192
This commit is contained in:
committed by
Thomas Krijnen
parent
50ea73a28f
commit
921e343187
@@ -146,8 +146,8 @@ namespace IfcGeom
|
|||||||
for (arg_map_t::const_iterator it = args.begin(); it != args.end(); ++it) {
|
for (arg_map_t::const_iterator it = args.begin(); it != args.end(); ++it) {
|
||||||
IfcWrite::IfcWritableEntity dummy(it->first);
|
IfcWrite::IfcWritableEntity dummy(it->first);
|
||||||
IfcUtil::IfcBaseClass* base = IfcSchema::SchemaEntity(&dummy);
|
IfcUtil::IfcBaseClass* base = IfcSchema::SchemaEntity(&dummy);
|
||||||
assert(it->second < base->getArgumentType(it->second) == IfcUtil::Argument_STRING && "Argument type not string");
|
|
||||||
assert(it->second < base->getArgumentCount() && "Argument index out of bounds");
|
assert(it->second < base->getArgumentCount() && "Argument index out of bounds");
|
||||||
|
assert(base->getArgumentType(it->second) == IfcUtil::Argument_STRING && "Argument type not string");
|
||||||
delete base;
|
delete base;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user