diff --git a/slsDetectorGui/include/qDrawPlot.h b/slsDetectorGui/include/qDrawPlot.h index 34e62cc48..7aab77331 100644 --- a/slsDetectorGui/include/qDrawPlot.h +++ b/slsDetectorGui/include/qDrawPlot.h @@ -99,7 +99,7 @@ public: void IsXYRangeValues(bool changed,qDefs::range xy){IsXYRange[xy]=changed;}; /** Get minimum Plot timer - between plots */ - double GetMinimumPlotTimer(){return (double)PLOT_TIMER_MS;}; + double GetMinimumPlotTimer(){return PLOT_TIMER_MS;}; /** Set Plot timer - between plots in ms*/ void SetPlotTimer(double time); /** Set Plot frame factor - between plots, also for receiver if exists */ @@ -482,7 +482,7 @@ bool IsXYRange[4]; //#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) //static constexpr double PLOT_TIMER_MS = 200; //#else -static const int PLOT_TIMER_MS = 200; +static const double PLOT_TIMER_MS = 200; //#endif /** Specific timer value between plots */ double timerValue; diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index 2d58ab857..0a23ccdb3 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -164,7 +164,7 @@ void qDrawPlot::SetupWidgetWindow(){ IsXYRange[2] = false; IsXYRange[3] = false; - timerValue = (double)PLOT_TIMER_MS; + timerValue = PLOT_TIMER_MS; frameFactor=0; isFrameEnabled = false; isTriggerEnabled = false;