[apps/graph] Handle undefined function

Change-Id: Id26e0f81ba5c1446655f33b2c63f97ab5b684e41
This commit is contained in:
Émilie Feral
2016-10-20 16:00:11 +02:00
parent 5693b9f95f
commit e5ff8f65c3
10 changed files with 66 additions and 18 deletions

View File

@@ -9,6 +9,9 @@ FunctionExpressionView::FunctionExpressionView() :
void FunctionExpressionView::drawRect(KDContext * ctx, KDRect rect) const {
EvenOddCell::drawRect(ctx, rect);
if (m_function->layout() == nullptr) {
return;
}
// Select the background color according to the even line and the cursor selection
KDColor background = backgroundColor();
// Select text color according to the state of the function