From 1cd104557200738017190ed273ac3cf83ced1a30 Mon Sep 17 00:00:00 2001 From: Manolo Gouy <Manolo> Date: Sun, 18 Apr 2010 07:53:20 +0000 Subject: [PATCH] Fixed Quartz printing of custom dashed-lines. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_line_style.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fl_line_style.cxx b/src/fl_line_style.cxx index e93f159ec..b2bf1fc12 100644 --- a/src/fl_line_style.cxx +++ b/src/fl_line_style.cxx @@ -117,7 +117,9 @@ void Fl_Device::line_style(int style, int width, char* dashes) { fl_quartz_line_width_ = (float)width; fl_quartz_line_cap_ = Cap[(style>>8)&3]; // when printing kCGLineCapSquare seems better for solid lines - if (Fl_Device::current()->type() == quartz_printer && style == FL_SOLID) fl_quartz_line_cap_ = kCGLineCapSquare; + if (Fl_Device::current()->type() == quartz_printer && style == FL_SOLID && dashes == NULL) { + fl_quartz_line_cap_ = kCGLineCapSquare; + } fl_quartz_line_join_ = Join[(style>>12)&3]; char *d = dashes; static CGFloat pattern[16]; -- GitLab