[apps] Fix CondensedSumLayout created with a nullptr child

Change-Id: Ie6d4c6408a45a9cdf617b8cba988667c17f4cc36
This commit is contained in:
Léa Saviot
2018-05-09 09:55:58 +02:00
parent 4de2ae5353
commit 9af3d378d1

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),
nullptr,
new EmptyLayout(EmptyLayout::Color::Yellow, false),
false);
} else {
char buffer[2+PrintFloat::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits)];