From 04794dd26f2d6ede003eccdc2925343eb7d8f203 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Fri, 28 Feb 2020 14:00:38 +0100 Subject: [PATCH] [apps/shared/sum_graph_controller] Uniformize number of significant digits --- apps/shared/sum_graph_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared/sum_graph_controller.cpp b/apps/shared/sum_graph_controller.cpp index 6314f9e51..dfc0e32c5 100644 --- a/apps/shared/sum_graph_controller.cpp +++ b/apps/shared/sum_graph_controller.cpp @@ -201,7 +201,7 @@ void SumGraphController::LegendView::setSumLayout(Step step, double start, doubl LayoutHelper::String(buffer, strlen(buffer), k_font), EmptyLayout::Builder(EmptyLayoutNode::Color::Yellow, false, k_font, false)); } else { - constexpr int precision = Preferences::LargeNumberOfSignificantDigits; + constexpr int precision = Preferences::MediumNumberOfSignificantDigits; constexpr int sizeForPrecision = PrintFloat::charSizeForFloatsWithPrecision(precision); constexpr int bufferSize = 2 + sizeForPrecision; char buffer[bufferSize];