From b605b51392869075c55da915e985dece42b7df11 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Thu, 10 Oct 2002 09:44:40 +0000 Subject: [PATCH] DPSsetdash::: now accepts an empty dash pattern, signaling a reset to a solid line. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14697 72102866-910b-0410-8b05-ffd578937521 --- Source/xlib/XGGState.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/xlib/XGGState.m b/Source/xlib/XGGState.m index 85a9301..f3f3f6c 100644 --- a/Source/xlib/XGGState.m +++ b/Source/xlib/XGGState.m @@ -1423,6 +1423,13 @@ typedef enum { char dash_list[size]; int i; + if ((pat == NULL) || (size == 0)) + { + gcv.line_style = LineSolid; + [self setGCValues: gcv withMask: GCLineStyle]; + return; + } + gcv.line_style = LineOnOffDash; [self setGCValues: gcv withMask: GCLineStyle];