From 1e5bfb821682c617706f1fe848cf16170aac3c2e Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Mon, 28 Nov 2016 11:02:03 +0100 Subject: [PATCH] when activating the cross hair cursor in the musrview canvas, enable the event status bar as well. This allows the user to see exactly where the cursor is. This is for instance helpful for Fourier spectra. --- src/classes/PMusrCanvas.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/classes/PMusrCanvas.cpp b/src/classes/PMusrCanvas.cpp index 9a0a3b49..44d31939 100644 --- a/src/classes/PMusrCanvas.cpp +++ b/src/classes/PMusrCanvas.cpp @@ -1142,10 +1142,13 @@ void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected) } } else if (x == 'c') { Int_t state = fDataTheoryPad->GetCrosshair(); - if (state == 0) + if (state == 0) { + fMainCanvas->ToggleEventStatus(); fDataTheoryPad->SetCrosshair(2); - else + } else { + fMainCanvas->ToggleEventStatus(); fDataTheoryPad->SetCrosshair(0); + } fMainCanvas->Update(); } else { fMainCanvas->Update();