diff --git a/src/plotmanager.cpp b/src/plotmanager.cpp --- a/src/plotmanager.cpp +++ b/src/plotmanager.cpp @@ -276,8 +276,7 @@ void PlotManager::_addCurve(QwtPlotCurve curves.append(curve); unsigned index = curves.size()-1; - auto color = _infoModel->index(index, ChannelInfoModel::COLUMN_NAME)\ - .data(Qt::ForegroundRole).value(); + auto color = _infoModel->color(index); curve->setPen(color); // create the plot for the curve if we are on multi display