From 77c8a2ab26848288ebd79b8e9615f93c3c3fd567 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Thu, 28 Aug 2014 00:21:42 +1000 Subject: [PATCH] Remove pin from snapshot graphs --- sleepyhead/Graphs/gGraphView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sleepyhead/Graphs/gGraphView.cpp b/sleepyhead/Graphs/gGraphView.cpp index 55d821fc..b3dd778f 100644 --- a/sleepyhead/Graphs/gGraphView.cpp +++ b/sleepyhead/Graphs/gGraphView.cpp @@ -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);