Fixes crash in taxonomy::loft::print_impl when axis == nullptr

This commit is contained in:
Richard Brice
2026-03-08 09:55:47 -07:00
parent 0469a9528b
commit e282a18474
+4 -2
View File
@@ -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 {