[poincare] Fix SumGraphController CondensSumLayout size on second step

Change-Id: Ia9608ccf6b556183ed8def852d35a9096aeaac19
This commit is contained in:
Léa Saviot
2018-05-15 11:33:51 +02:00
parent 48d1d248ea
commit c70feb9a46
3 changed files with 17 additions and 12 deletions

View File

@@ -251,7 +251,7 @@ void SumGraphController::LegendView::setSumSymbol(Step step, double start, doubl
m_sumLayout = new CondensedSumLayout(
LayoutEngine::createStringLayout(sigma, sizeof(sigma)),
LayoutEngine::createStringLayout(buffer, strlen(buffer), KDText::FontSize::Small),
new EmptyLayout(EmptyLayout::Color::Yellow, false),
new EmptyLayout(EmptyLayout::Color::Yellow, false, KDText::FontSize::Small, false),
false);
} else {
char buffer[2+PrintFloat::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits)];