Skip to content

Commit 2f4ea7f

Browse files
committed
Probably solve bad_optional_access
1 parent 97c7391 commit 2f4ea7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chart/ui/chart.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void ChartWidget::trackMarker()
174174
{
175175
auto plot = chart.getPlot();
176176
auto *marker = chart.markerAt(pointerEvent.pos);
177-
if (marker
177+
if (marker && trackedMarkerId.has_value()
178178
&& static_cast<uint64_t>(
179179
trackedMarkerId.value())
180180
== marker->idx) {

0 commit comments

Comments
 (0)