--- a/src/model.cpp Mon Jun 20 22:21:53 2022 +0300 +++ b/src/model.cpp Mon Jun 20 22:22:15 2022 +0300 @@ -38,23 +38,7 @@ static constexpr const char* circularPrimitiveTypeString(const CircularPrimitive& circ) { - switch (circ.type) { - case CircularPrimitive::Circle: - return "edge"; - case CircularPrimitive::Disc: - return "disc"; - case CircularPrimitive::Cylinder: - return "cyli"; - case CircularPrimitive::CylinderOpen: - return "cylo"; - case CircularPrimitive::CylinderClosed: - return "cylc"; - case CircularPrimitive::DiscNegative: - return "ndis"; - case CircularPrimitive::Chord: - return "chrd"; - } - return ""; + return circularPrimitiveStems[circ.type]; } static QString circularPrimitiveFilePath(const CircularPrimitive& circ)