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();