# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-09-21 12:46:06 # Node ID 6abb4bd782b3d26ebe317a7ab8015298f98047cf # Parent 3200c8bffce823fbcd0150dd41d4f6c3bae7fbff fix zero passing of demo data calculation diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -603,7 +603,7 @@ void MainWindow::demoTimerTimeout() { const double period = 100; demoCount++; - if (demoCount > 100) demoCount = 0; + if (demoCount >= 100) demoCount = 0; if (!ui->actionPause->isChecked()) {