Changeset - 59966dd8ab7a
[Not reviewed]
Merge default
0 1 0
Hasan Yavuz Ă–ZDERYA - 7 years ago 2019-01-28 04:05:46
hy@ozderya.net
Merged in aslan-mehmet/serialplot/bugfix/zoomer-channel-out-of-bound (pull request #6)

zoomer index out of bound for channel info fixed
1 file changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/plotmanager.cpp
Show inline comments
 
@@ -385,12 +385,22 @@ void PlotManager::_addCurve(QwtPlotCurve
 
    curve->attach(plot);
 
    plot->replot();
 
}
 

	
 
void PlotManager::removeCurves(unsigned number)
 
{
 
    if (_stream != nullptr)     // not displaying snapshot
 
    {
 
        if (! isMulti)
 
        {
 
            QVector<const StreamChannel*> dispChannels;
 
            dispChannels = _stream->allChannels();
 
            plotWidgets[0]->setDispChannels(dispChannels);
 
        }
 
    }
 

	
 
    for (unsigned i = 0; i < number; i++)
 
    {
 
        if (!curves.isEmpty())
 
        {
 
            delete curves.takeLast();
 
            if (isMulti) // delete corresponding widget as well
0 comments (0 inline, 0 general)