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; gGraph *g;
if (!print_bookmarks) { if (!print_bookmarks) {
for (int i=0;i<gv->size();i++) { for (int i=0;i<gv->size();i++) {
bool normal=true;
gGraph *g=(*gv)[i]; gGraph *g=(*gv)[i];
if (g->isEmpty()) continue; if (g->isEmpty()) continue;
if (!g->visible()) continue; if (!g->visible()) continue;
if (print_bookmarks) { start.push_back(st);
normal=false; end.push_back(et);
start.push_back(st); graphs.push_back(g);
end.push_back(et); labels.push_back("");
graphs.push_back(g); //labels.push_back(tr("Current Selection"));
labels.push_back(tr("Current Selection"));
}
} }
} else { } else {
if ((g=gv->findGraph(tr("Event Flags")))!=NULL) { if ((g=gv->findGraph(tr("Event Flags")))!=NULL) {