[apps/shared] Fix bug in curve view

Change-Id: I4eae6fdcea52b58f457171f8e43207e2aa4277b8
This commit is contained in:
Émilie Feral
2017-04-26 14:03:51 +02:00
parent 8a758a835c
commit 39eb2d2cdf

View File

@@ -294,7 +294,7 @@ void CurveView::drawCurve(KDContext * ctx, KDRect rect, Model * curve, KDColor c
return;
}
float y = evaluateModelWithParameter(curve, x);
if (isnan(y)) {
if (isnan(y)|| isinf(y)) {
continue;
}
float pxf = floatToPixel(Axis::Horizontal, x);