mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 16:50:50 +01:00
[apps/shared] Fix bug in curve view
Change-Id: I4eae6fdcea52b58f457171f8e43207e2aa4277b8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user