mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 11:40:42 +00:00
Messed up that last commit
This commit is contained in:
parent
77c8a2ab26
commit
8d08bb5a6b
@ -2096,7 +2096,7 @@ void gGraphView::onSnapshotGraphToggle()
|
|||||||
bool pinned = graph->isPinned();
|
bool pinned = graph->isPinned();
|
||||||
graph->setPinned(false);
|
graph->setPinned(false);
|
||||||
QPixmap pm = graph->renderPixmap(width(), graph->m_rect.height(), false);
|
QPixmap pm = graph->renderPixmap(width(), graph->m_rect.height(), false);
|
||||||
graph->setPinned(true);
|
graph->setPinned(pinned);
|
||||||
gGraph * newgraph = new gGraph(newname, nullptr, graph->title(), graph->units(), graph->height(), graph->group());
|
gGraph * newgraph = new gGraph(newname, nullptr, graph->title(), graph->units(), graph->height(), graph->group());
|
||||||
newgraph->setSnapshot(pm);
|
newgraph->setSnapshot(pm);
|
||||||
newgraph->setBlockSelect(true);
|
newgraph->setBlockSelect(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user