Changed 'start_from' to simply 'from' in sequence diagrams

This commit is contained in:
Bartek Kryza
2023-08-31 23:26:53 +02:00
parent 51e0275db3
commit e830195fb7
40 changed files with 136 additions and 78 deletions

View File

@@ -65,6 +65,12 @@ void get_option(const Node &node, clanguml::config::option<T> &option)
{
if (node[option.name])
option.set(node[option.name].template as<T>());
for (const auto &alt_name : option.alternate_names)
if (node[alt_name]) {
option.set(node[alt_name].template as<T>());
break;
}
}
template <>
@@ -573,7 +579,7 @@ template <> struct convert<sequence_diagram> {
if (!decode_diagram(node, rhs))
return false;
get_option(node, rhs.start_from);
get_option(node, rhs.from);
get_option(node, rhs.from_to);
get_option(node, rhs.to);
get_option(node, rhs.combine_free_functions_into_file_participants);