mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Remove pin from snapshot graphs
This commit is contained in:
parent
cec3cd8523
commit
77c8a2ab26
@ -2093,7 +2093,10 @@ void gGraphView::onSnapshotGraphToggle()
|
||||
return;
|
||||
}
|
||||
|
||||
bool pinned = graph->isPinned();
|
||||
graph->setPinned(false);
|
||||
QPixmap pm = graph->renderPixmap(width(), graph->m_rect.height(), false);
|
||||
graph->setPinned(true);
|
||||
gGraph * newgraph = new gGraph(newname, nullptr, graph->title(), graph->units(), graph->height(), graph->group());
|
||||
newgraph->setSnapshot(pm);
|
||||
newgraph->setBlockSelect(true);
|
||||
|
Loading…
Reference in New Issue
Block a user