diff --git a/plotview.cpp b/plotview.cpp index 1ae0e5f..8018973 100644 --- a/plotview.cpp +++ b/plotview.cpp @@ -171,7 +171,7 @@ void PlotView::extractSymbols(std::shared_ptr src) if (!floatSrc) return; auto samples = floatSrc->getSamples(selectedSamples.minimum, selectedSamples.length()); - auto step = selectedSamples.length() / cursors.segments(); + auto step = (float)selectedSamples.length() / cursors.segments(); auto symbols = std::vector(); for (auto i = step / 2; i < selectedSamples.length(); i += step) {