17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-31 03:09:58 +01:00

fix(editor): the tools see each change of the history by a revision of it, not by its size, which stood still once the oldest steps were dropped at the limit of 200 and came back to the same after an undo and another change: the SRK schematic, the lineside lists, the gauge, the joints, the speeds and the parallel track missed them

This commit is contained in:
maj00r
2026-10-22 16:06:25 +02:00
parent 43346b61e7
commit 2452c1cd0d
10 changed files with 33 additions and 25 deletions

View File

@@ -74,7 +74,7 @@ class srk_tool final : public editor_tool
int m_record{-1}; // of the open station, -1 while it has none
TTrack *m_anchor{nullptr}; // the switch the open station was found from
bool m_reversed{false}; // the switches numbered from the right end of the schematic
std::size_t m_history_size{0};
std::size_t m_history_revision{0};
TTrack const *m_picked{nullptr}; // the track selected when the station was looked for
view m_view_state;
int m_hover{-1}; // path of the layout under the mouse in the schematic