diff --git a/apps/shared/continuous_function_cache.cpp b/apps/shared/continuous_function_cache.cpp index ad1e0e98c..62064532d 100644 --- a/apps/shared/continuous_function_cache.cpp +++ b/apps/shared/continuous_function_cache.cpp @@ -31,6 +31,10 @@ void ContinuousFunctionCache::PrepareForCaching(void * fun, ContinuousFunctionCa function->setCache(cache); } + if (tStep != 0. && tStep != cache->step()) { + cache->clear(); + } + if (function->plotType() == ContinuousFunction::PlotType::Cartesian && tStep != 0) { function->cache()->pan(function, tMin); }