Fix broken forward-compatibility for arrange settings with <=2.6.1

This commit is contained in:
tamasmeszaros 2023-10-05 14:38:18 +02:00
parent 5b7fdd0d6d
commit dc37d04e82

View File

@ -42,7 +42,10 @@ public:
static constexpr std::string_view get_label(GeometryHandling v) static constexpr std::string_view get_label(GeometryHandling v)
{ {
constexpr auto STR = std::array{ constexpr auto STR = std::array{
"convex"sv, "balanced"sv, "advanced"sv, "undefined"sv "0"sv, // convex
"1"sv, // balanced
"2"sv, // advanced
"-1"sv, // undefined
}; };
return STR[v]; return STR[v];
@ -51,7 +54,9 @@ public:
static constexpr std::string_view get_label(ArrangeStrategy v) static constexpr std::string_view get_label(ArrangeStrategy v)
{ {
constexpr auto STR = std::array{ constexpr auto STR = std::array{
"auto"sv, "pulltocenter"sv, "undefined"sv "0"sv, // auto
"1"sv, // pulltocenter
"-1"sv, // undefined
}; };
return STR[v]; return STR[v];
@ -59,13 +64,15 @@ public:
static constexpr std::string_view get_label(XLPivots v) static constexpr std::string_view get_label(XLPivots v)
{ {
constexpr auto STR = std::array{"center"sv, constexpr auto STR = std::array{
"rearleft"sv, "0"sv, // center
"frontleft"sv, "1"sv, // rearleft
"frontright"sv, "2"sv, // frontleft
"rearright"sv, "3"sv, // frontright
"random"sv, "4"sv, // rearright
"undefined"sv}; "5"sv, // random
"-1"sv, // undefined
};
return STR[v]; return STR[v];
} }