diff --git a/ChangeLog b/ChangeLog index ad99e6682..848132849 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ #--------------------------------------------------------------------- # ChangeLog -# BMW, 2010/08/17 -# $Id: +# AS, 2010/08/19 +# $Id$ #--------------------------------------------------------------------- changes since 0.6.0 @@ -18,6 +18,7 @@ NEW integration of a few external musrfit plug-ins into the standard build proce NEW default estimates for 'data' and 'background' entries in RUN blocks NEW directory with some msr- and data-files for quick testing of new musrfit installations NEW option to musrt0: the key 'T' will set the t0 cursor to the maximum of the histogram +FIXED next attempt to fix the d-f-d (MUSR-115) issue FIXED formatting of the ASCII fit output file for long parameter names (MUSR-142) FIXED time window frame bug in musrview (MUSR-138) FIXED calculation of LF relaxation functions for big static widths (MUSR-139) diff --git a/src/classes/PMusrCanvas.cpp b/src/classes/PMusrCanvas.cpp index bae2304be..86eaf4037 100644 --- a/src/classes/PMusrCanvas.cpp +++ b/src/classes/PMusrCanvas.cpp @@ -721,6 +721,18 @@ void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected) // handle keys and popup menu entries enum eKeySwitch {kNotRelevant, kData, kDiffData, kFourier, kDiffFourier, kFourierDiff}; eKeySwitch relevantKeySwitch = kNotRelevant; + static eKeySwitch lastKeySwitch = kNotRelevant; + + if ((lastKeySwitch == kFourierDiff) && (x == 'f')) { + cout << "debug> f-d-f doesn't make any sense, will ignore 'f' ..." << endl; + return; + } + + if ((lastKeySwitch == kDiffFourier) && (x == 'd')) { + cout << "debug> d-f-d doesn't make any sense, will ignore 'd' ..." << endl; + return; + } + if (x == 'q') { // quit Done(0); } else if (x == 'd') { // difference @@ -813,6 +825,8 @@ void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected) fMainCanvas->Update(); } + lastKeySwitch = relevantKeySwitch; + // call the apropriate functions if necessary switch (relevantKeySwitch) { case kData: // show data