From 532e8224ddc7954285621fa442ca65ddc8748c4d Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 1 Sep 2018 13:18:00 +0000 Subject: [PATCH] CtrlCore: Cocoa draw fixes git-svn-id: svn://ultimatepp.org/upp/trunk@12230 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlCore/CocoDrawOp.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uppsrc/CtrlCore/CocoDrawOp.mm b/uppsrc/CtrlCore/CocoDrawOp.mm index 166a952f9..4410ddbab 100644 --- a/uppsrc/CtrlCore/CocoDrawOp.mm +++ b/uppsrc/CtrlCore/CocoDrawOp.mm @@ -10,6 +10,8 @@ void SystemDraw::Stroke(int width, Color color, bool fill) static double dot[] = { 3, 3 }; static double dashdot[] = { 9, 6, 3, 6 }; static double dashdotdot[] = { 9, 3, 3, 3, 3, 3 }; + if(IsNull(width)) + width = PEN_NULL; switch(width) { case PEN_NULL: if(!fill) return; case PEN_DASH: CGContextSetLineDash(cgHandle, 0, dash, __countof(dash)); break;