Wrong position of the curve after changing between the ranges back and forth
Requirements
-
I searched through the issues if the issue already exists
Steps to reproduce
-
Open the attached projectmulti-range-bugs.lml which has a plot with two ranges and a curve assigned to the first range:
-
Perform undo
Expected
The curve should be properly scaled and placed with the first range as it was shown above on the first screenshot.
Observed
The curve is shifted and not properly scaled
The combobox with the ranges is not properly updated after the undo, this is tracked in #779 (closed) and can be ignored here.
Labplot Version
Debug build 2.10.0-806-g417f42311
Sep 2 2023, 10:21:42
System: macOS Ventura (13.5)
Lokalisierung: English,United Kingdom (Dezimalpunkt ',', Tausendertrenner '.'
Zahlenformat: Dezimalpunkt ',', Tausendertrenner '.', Exponentialzeichen 'e', Nullzeichen '0', Prozentzeichen '%', Positiv-/Negativzeichen '+'/'-' (Aktualisiert beim Neustart)
Architektur: x86_64-little_endian-lp64
Kernel: darwin 22.6.0
C++ Compiler: AppleClang 14.0.3.14030022
C++ Compiler Optionen: -fdiagnostics-color=always -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -D_GNU_SOURCE -Wall -Wextra -Wundef -Wpointer-arith -Wunreachable-code -Wunused -Wdeprecated-declarations -fno-omit-frame-pointer -fstack-protector -fexceptions -std=c++17 -O2 -Wcast-align -Wswitch-enum -fvisibility=default -pedantic -Wzero-as-null-pointer-constant
Edited by Alexander Semke