diff --git a/sleepyhead/Graphs/gGraphView.cpp b/sleepyhead/Graphs/gGraphView.cpp index b3dd778f..f17f322b 100644 --- a/sleepyhead/Graphs/gGraphView.cpp +++ b/sleepyhead/Graphs/gGraphView.cpp @@ -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);