diff --git a/apps/statistics/store.cpp b/apps/statistics/store.cpp index 122ed2c25..140ded211 100644 --- a/apps/statistics/store.cpp +++ b/apps/statistics/store.cpp @@ -192,7 +192,7 @@ double Store::defaultValue(int i, int j) { } double Store::sumOfValuesBetween(double x1, double x2) { - int result = 0; + double result = 0; for (int k = 0; k < m_numberOfPairs; k++) { if (m_data[0][k] < x2 && x1 <= m_data[0][k]) { result += m_data[1][k]; diff --git a/apps/statistics/store_controller.cpp b/apps/statistics/store_controller.cpp index 0b9a8714a..05ccab7a3 100644 --- a/apps/statistics/store_controller.cpp +++ b/apps/statistics/store_controller.cpp @@ -42,8 +42,6 @@ bool StoreController::setDataAtLocation(double floatBody, int columnIndex, int r if (floatBody < 0) { return false; } - m_store->set(std::round(floatBody), columnIndex, rowIndex-1); - return true; } return Shared::StoreController::setDataAtLocation(floatBody, columnIndex, rowIndex); }