diff --git a/src/LTMPlot.cpp b/src/LTMPlot.cpp index 516269f76..13b994d59 100644 --- a/src/LTMPlot.cpp +++ b/src/LTMPlot.cpp @@ -150,7 +150,14 @@ LTMPlot::configUpdate() axisWidget(x)->setPalette(palette); } axisWidget(QwtPlot::xBottom)->setPalette(palette); - this->legend()->setPalette(palette); + QwtLegend *l = static_cast(this->legend()); + l->setPalette(palette); + foreach(QwtPlotCurve *p, curves) { + foreach (QWidget *w, l->legendWidgets(itemToInfo(p))) { + w->setPalette(palette); + } + } + updateLegend(); } void @@ -1129,6 +1136,9 @@ LTMPlot::setData(LTMSettings *set) //qDebug()<<"Final tidy.."<