From 8a2b2d21da265901941ee5b0fca384d6f2bedc87 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 13 Nov 2018 20:01:27 +0000 Subject: [PATCH] Painter: Create fix git-svn-id: svn://ultimatepp.org/upp/trunk@12533 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Painter/Context.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/uppsrc/Painter/Context.cpp b/uppsrc/Painter/Context.cpp index 1b4b1da58..160efa305 100644 --- a/uppsrc/Painter/Context.cpp +++ b/uppsrc/Painter/Context.cpp @@ -168,20 +168,20 @@ void BufferPainter::Create(ImageBuffer& ib, int mode_) path_info = paths; - ClearPath(); + attr.mtx = Xform2D::Identity(); + attr.cap = LINECAP_BUTT; + attr.join = LINEJOIN_MITER; + attr.miter_limit = 4; + attr.evenodd = false; + attr.hasclip = false; + attr.cliplevel = 0; + attr.opacity = 1; + attr.dash = NULL; + attr.mask = false; + attr.invert = false; + attr.mtx_serial = 0; - Attr& a = attr; - a.cap = LINECAP_BUTT; - a.join = LINEJOIN_MITER; - a.miter_limit = 4; - a.evenodd = false; - a.hasclip = false; - a.cliplevel = 0; - a.opacity = 1; - a.dash = NULL; - a.mask = false; - a.invert = false; - a.mtx_serial = 0; + ClearPath(); gradientn = Null;