18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 21:15:20 +01:00

fix(editor): the hand of a turnout commented as the code has it, an Apply with no edit adds no step, a profile opened drops the error of the one before, tests of the side

- The comments of layoutCommands.hpp and layoutNetwork.hpp give hand 1 as right and -1 as left, as the migration and the inspector
  have it since #464 (R of a switch record).
- The grade line of a line of the model applied with no edit: the breaks compared within a micrometre, the chainages having gone to
  the route and back; compared exactly, it added a step.
- profile_open() clears the error of the route opened before.
- Self-test expectations: modelpreview current (the preview worked out for the design as it is now, m_11), modelspacing signed by
  the side (m_13 to the right, -4.5 m), modelside of a switch (m_8 right, then left after the side is changed).
This commit is contained in:
maj00r
2026-11-29 23:01:16 +01:00
parent e4b90ce744
commit c383583afb
10 changed files with 68 additions and 16 deletions
+2
View File
@@ -776,6 +776,8 @@ void editor_mode::profile_open(TTrack *From, TTrack *To)
auto &state{m_profile};
state.open = true;
state.status.clear();
// what was wrong with the route opened before isn't of this one
state.error.clear();
editor_track::route route;
if (false == editor_track::find_route(From, To, route, state.error))
return;