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
This commit is contained in:
cxl 2020-12-14 12:16:03 +00:00
parent bafeaca1e0
commit 693fb802a7

View file

@ -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;