aboutsummaryrefslogtreecommitdiffstats
path: root/stats/statsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stats/statsview.cpp')
-rw-r--r--stats/statsview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/stats/statsview.cpp b/stats/statsview.cpp
index e5cd0f8be..714f3ee1a 100644
--- a/stats/statsview.cpp
+++ b/stats/statsview.cpp
@@ -460,6 +460,11 @@ void StatsView::updateFeatures()
if (medianMarker)
medianMarker->setVisible(state.median);
+ if (regressionItem) {
+ regressionItem->setVisible(state.regression || state.confidence);
+ if (state.regression || state.confidence)
+ regressionItem->setFeatures(state.regression, state.confidence);
+ }
for (ChartItemPtr<QuartileMarker> &marker: quartileMarkers)
marker->setVisible(state.quartiles);
}