mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-21 21:20:45 +00:00
Fixed messup with blank reports where no bookmarks
This commit is contained in:
parent
25f1e10d7c
commit
6a1cff849b
@ -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) {
|
|
||||||
normal=false;
|
|
||||||
start.push_back(st);
|
start.push_back(st);
|
||||||
end.push_back(et);
|
end.push_back(et);
|
||||||
graphs.push_back(g);
|
graphs.push_back(g);
|
||||||
labels.push_back(tr("Current Selection"));
|
labels.push_back("");
|
||||||
}
|
//labels.push_back(tr("Current Selection"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((g=gv->findGraph(tr("Event Flags")))!=NULL) {
|
if ((g=gv->findGraph(tr("Event Flags")))!=NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user