# HG changeset patch # User Mehmet ASLAN # Date 2019-01-26 11:32:06 # Node ID 73a524b77e0883767a613cf8bdf6198f4a63379a # Parent 0fba5e1a3d2efebec676979b4f0c1fcc284c103c zoomer index out of bound for channel info fixed diff --git a/src/plotmanager.cpp b/src/plotmanager.cpp --- a/src/plotmanager.cpp +++ b/src/plotmanager.cpp @@ -388,6 +388,16 @@ void PlotManager::_addCurve(QwtPlotCurve void PlotManager::removeCurves(unsigned number) { + if (_stream != nullptr) // not displaying snapshot + { + if (! isMulti) + { + QVector dispChannels; + dispChannels = _stream->allChannels(); + plotWidgets[0]->setDispChannels(dispChannels); + } + } + for (unsigned i = 0; i < number; i++) { if (!curves.isEmpty())