Fix for gold selection bars being left in overview report

This commit is contained in:
Mark Watkins 2011-09-11 17:10:39 +10:00
parent 10dfd94aa7
commit 28049d5f2d
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

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