From 28049d5f2d476f64f4b4d805edbb5016708ac4d8 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 11 Sep 2011 17:10:39 +1000 Subject: [PATCH] Fix for gold selection bars being left in overview report --- Graphs/gBarChart.h | 1 + overview.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Graphs/gBarChart.h b/Graphs/gBarChart.h index 0265f1e3..1705d788 100644 --- a/Graphs/gBarChart.h +++ b/Graphs/gBarChart.h @@ -24,6 +24,7 @@ class SummaryChart:public Layer virtual void SetDay(Day * day=NULL); virtual bool isEmpty() { return m_empty; } void addSlice(ChannelID code, QColor color, SummaryType type) { m_codes.push_back(code); m_colors.push_back(color); m_type.push_back(type); } + void deselect() { hl_day=-1; } protected: Qt::Orientation m_orientation; diff --git a/overview.cpp b/overview.cpp index 5a3c1fb6..028ede63 100644 --- a/overview.cpp +++ b/overview.cpp @@ -174,6 +174,11 @@ void Overview::on_printButton_clicked() if (report) { report->setMinimumSize(ui->graphArea->width(),ui->graphArea->height()); report->setMaximumSize(ui->graphArea->width(),ui->graphArea->height()); + bc->deselect(); + uc->deselect(); + pr->deselect(); + lk->deselect(); + npb->deselect(); GraphView->hide(); report->show();