File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ bool Selector::anySelected()
2828 auto allCnt = 0U ;
2929 for (const auto &marker : plot.getMarkers ()) {
3030 if (static_cast <double >(marker.enabled ) > 0 ) {
31- if (marker.selected ) selectedCnt++;
31+ if (static_cast <double >(marker.selected ) > 0 )
32+ selectedCnt++;
3233 allCnt++;
3334 }
3435 }
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ std::string PointerEvent::dataToJson() const
3636 position)(" coords" , coords);
3737 if (!markerJson.empty ()) { j.raw (" marker" , markerJson); }
3838 }
39- return res;
39+ return res. substr ( 1 , res. size ()- 2 ) ;
4040}
4141
4242WheelEvent::WheelEvent (double delta, Chart &chart) :
You can’t perform that action at this time.
0 commit comments