Author: manolo
Date: 2010-04-18 00:53:20 -0700 (Sun, 18 Apr 2010)
New Revision: 7523
Log:
Fixed Quartz printing of custom dashed-lines.

Modified:
   branches/branch-1.3/src/fl_line_style.cxx

Modified: branches/branch-1.3/src/fl_line_style.cxx
===================================================================
--- branches/branch-1.3/src/fl_line_style.cxx   2010-04-18 06:57:37 UTC (rev 
7522)
+++ branches/branch-1.3/src/fl_line_style.cxx   2010-04-18 07:53:20 UTC (rev 
7523)
@@ -117,7 +117,9 @@
   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];

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to