Skip to content

Commit

Permalink
[#59] TrackEditor (Part 92: Fixed index buffer in ScatterPlot)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-nestorovic committed Dec 7, 2024
1 parent 8a85918 commit 96bc878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Main/src/Image_TrackEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,8 @@ using namespace Charting;
r.x=tr.GetIndexTime(i);
r.y=TIME_MILLI(200); // should suffice for any Medium
}
std::swap( *indexTimes.get(), indexTimes.get()[tr.GetIndexCount()-1] ); // swapping first and last index pulse to disable application of percentiles, unapplicable to Index pulses
if (indexTimes.length)
std::swap( *indexTimes.get(), indexTimes.get()[tr.GetIndexCount()-1] ); // swapping first and last index pulse to disable application of percentiles, unapplicable to Index pulses
auto indexTimeSeries=CChartView::CXyOrderedBarSeries(
tr.GetIndexCount(), indexTimes, timeEditor.penIndex
);
Expand Down

0 comments on commit 96bc878

Please sign in to comment.