From 693fb802a79c86c74a20429a0085eed03f18237e Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 14 Dec 2020 12:16:03 +0000 Subject: [PATCH] Painter: NaN and Null resistance (Null and NaN points are now ignored) git-svn-id: svn://ultimatepp.org/upp/trunk@15594 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Painter/RasterizerClip.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uppsrc/Painter/RasterizerClip.cpp b/uppsrc/Painter/RasterizerClip.cpp index 3739371f7..89db07a53 100644 --- a/uppsrc/Painter/RasterizerClip.cpp +++ b/uppsrc/Painter/RasterizerClip.cpp @@ -12,6 +12,9 @@ void Rasterizer::CvLine(double x1, double y1, double x2, double y2) void Rasterizer::LineClip(double x1, double y1, double x2, double y2) { + if(IsNull(x1) || IsNull(y1) || IsNull(x2) || IsNull(y2)) + return; + if(y1 < cliprect.top) { if(y2 < cliprect.top) return;