diff --git a/apps/shared/function_app.cpp b/apps/shared/function_app.cpp index 04ff3e54a..298f018d2 100644 --- a/apps/shared/function_app.cpp +++ b/apps/shared/function_app.cpp @@ -12,9 +12,6 @@ FunctionApp::Snapshot::Snapshot() : m_rangeVersion(0), m_angleUnitVersion(Preferences::AngleUnit::Radian) { - m_interval.setStart(0); - m_interval.setEnd(10); - m_interval.setStep(1); } void FunctionApp::Snapshot::reset() { diff --git a/apps/shared/interval.cpp b/apps/shared/interval.cpp index 757157653..5731de680 100644 --- a/apps/shared/interval.cpp +++ b/apps/shared/interval.cpp @@ -5,10 +5,10 @@ namespace Shared { Interval::Interval() : m_numberOfElements(0), - m_start(0), - m_end(0), - m_step(0), - m_needCompute(false) + m_start(0.0), + m_end(10.0), + m_step(1.0), + m_needCompute(true) { }