diff options
-rw-r--r-- | chart2/inc/ChartView.hxx | 10 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 10 |
2 files changed, 3 insertions, 17 deletions
diff --git a/chart2/inc/ChartView.hxx b/chart2/inc/ChartView.hxx index b82a3086f45f..fcb4f2b05593 100644 --- a/chart2/inc/ChartView.hxx +++ b/chart2/inc/ChartView.hxx @@ -55,22 +55,14 @@ class GL3DPlotterBase; class GL2DRenderer; struct CreateShapeParam2D; -enum TimeBasedMode -{ - MANUAL, - AUTOMATIC -}; - struct TimeBasedInfo { TimeBasedInfo(): bTimeBased(false), - nFrame(0), - eMode(AUTOMATIC) {} + nFrame(0) {} bool bTimeBased; size_t nFrame; - TimeBasedMode eMode; Timer maTimer; // only valid when we are in the time based mode diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index fce14c83e5b2..12fc658f6d03 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -3342,16 +3342,10 @@ void ChartView::createShapes2D( const awt::Size& rPageSize ) } } - if(maTimeBased.eMode != MANUAL) - { - mrChartModel.setTimeBased(true); - mrChartModel.getNextTimePoint(); - } - else - maTimeBased.maTimer.Stop(); + maTimeBased.maTimer.Stop(); } - if(maTimeBased.bTimeBased && maTimeBased.eMode != MANUAL && !maTimeBased.maTimer.IsActive()) + if(maTimeBased.bTimeBased && !maTimeBased.maTimer.IsActive()) { maTimeBased.maTimer.SetTimeout(15); maTimeBased.maTimer.SetInvokeHandler(LINK(this, ChartView, UpdateTimeBased)); |