mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fixes crash in taxonomy::loft::print_impl when axis == nullptr
This commit is contained in:
@@ -1068,8 +1068,10 @@ typedef item const* ptr;
|
||||
virtual kinds kind() const { return LOFT; }
|
||||
|
||||
virtual void print_impl(std::ostream& o, int indent) const {
|
||||
o << std::string(indent, ' ') << "axis" << std::endl;
|
||||
axis->print(o, indent + 4);
|
||||
if (axis) {
|
||||
o << std::string(indent, ' ') << "axis" << std::endl;
|
||||
axis->print(o, indent + 4);
|
||||
}
|
||||
}
|
||||
|
||||
virtual size_t calc_hash() const {
|
||||
|
||||
Reference in New Issue
Block a user