xy-curve with one single data point is not selectable on the plot
Requirements
-
I searched through the issues if the issue already exists
Steps to reproduce
- Open the projectcurve_one_data_point.lml
- Try to select the curve on the plot consisting out of one single data point
Expected
The curve can be selected via the mouse click and also the hover effect is properly drawn when hovering over this curve.
Observed
Selection and hovering is not working for this curve.
Labplot Version
Debug build 2.10.0-2091-gaf4461323
Feb 23 2024, 09:59:36
System: openSUSE Leap 15.5
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-150500.55.49-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 -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -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