Fixed messup with blank reports where no bookmarks

This commit is contained in:
Mark Watkins 2011-12-24 16:45:18 +10:00
parent 25f1e10d7c
commit 6a1cff849b

View File

@ -1396,17 +1396,14 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
gGraph *g;
if (!print_bookmarks) {
for (int i=0;i<gv->size();i++) {
bool normal=true;
gGraph *g=(*gv)[i];
if (g->isEmpty()) continue;
if (!g->visible()) continue;
if (print_bookmarks) {
normal=false;
start.push_back(st);
end.push_back(et);
graphs.push_back(g);
labels.push_back(tr("Current Selection"));
}
start.push_back(st);
end.push_back(et);
graphs.push_back(g);
labels.push_back("");
//labels.push_back(tr("Current Selection"));
}
} else {
if ((g=gv->findGraph(tr("Event Flags")))!=NULL) {