From cfd57e8018ef76d7b8606c836b75a7975e5cc0ea Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 16 Jan 2018 23:44:24 +0000 Subject: [PATCH] Painter: Fill now closes polygon even if color is null git-svn-id: svn://ultimatepp.org/upp/trunk@11703 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Painter/Render.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/uppsrc/Painter/Render.cpp b/uppsrc/Painter/Render.cpp index 8097b0006..c3c875fcc 100644 --- a/uppsrc/Painter/Render.cpp +++ b/uppsrc/Painter/Render.cpp @@ -141,14 +141,15 @@ Buffer BufferPainter::RenderPath(double width, Event newclip; + + if(width == FILL) + Close(); + if(width == 0 || !ss && color.a == 0 && width >= FILL) { current = Null; return newclip; } - if(width == FILL) - Close(); - if(co && width >= FILL && !ss && !alt && mode == MODE_ANTIALIASED) { for(const String& p : path) { while(jobcount >= cojob.GetCount())