[spreadsheet] wrong number of rows after linking
Requirements
Steps to reproduce
- create two spreadsheets, the first spreadsheet with 100 rows and the second spreadsheet with 20 rows
- For the first spreadsheet activate the linking and select the second spreadsheet as the linking partner
- ...
Expected
- The second spreadsheet is properly resized to 20 and this number is also shown in the dock widget.
- After the de-selection of the first spreadsheet and its selection again the number of rows has to be equal to 20 and has also to be shown in the dock widget.
Observed
- The second spreadsheet is properly resized to 20 but 100 is shown in the dock widget.
- After the de-selection of the first spreadsheet and its selection again the number of rows becomes 100 again but in the dock widget 20 is shown.
Labplot Version
Debug build 2.10.0-880-g54f4a58e7
Nov 10 2023, 08:56:55
System: openSUSE Leap 15.4
Locale: English,United States (Decimal point '.', Group separator ','
Number settings: Decimal point '.', Group separator ',', Exponential 'e', Zero digit '0', Percent '%', Positive/Negative sign '+'/'-' (Updated on restart)
Architecture: x86_64-little_endian-lp64
Kernel: linux 5.14.21-150400.24.88-default
C++ Compiler: GNU 12.3.0
C++ Compiler Flags: -fno-operator-names -fno-exceptions -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 -Wsuggest-override -Wlogical-op -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