1
0
mirror of https://gitlab.com/pholy/OSCAR-code.git synced 2025-04-15 02:00:47 +00:00

Messed up that last commit

This commit is contained in:
Mark Watkins 2014-08-28 00:22:57 +10:00
parent 77c8a2ab26
commit 8d08bb5a6b

View File

@ -2096,7 +2096,7 @@ void gGraphView::onSnapshotGraphToggle()
bool pinned = graph->isPinned();
graph->setPinned(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());
newgraph->setSnapshot(pm);
newgraph->setBlockSelect(true);