octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for pr


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print
Date: Fri, 17 Feb 2012 16:14:21 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

Follow-up Comment #8, bug #33765 (project octave):

The simpler changeset below is sufficient.


# HG changeset patch
# User Ben Abbott  <address@hidden>
# Date 1329495185 18000
# Node ID b167d193d31097675338e6b7d135982fc99dc0fc
# Parent  dbc99d17f0add4d32f9648d4b737bc8f07b1635b
Properly set the line stipple for gl2ps.

* gl2ps-renderer.h: Set stipple for non-solid lines or when requested.

diff --git a/src/gl2ps-renderer.h b/src/gl2ps-renderer.h
--- a/src/gl2ps-renderer.h
+++ b/src/gl2ps-renderer.h
@@ -54,6 +54,8 @@
 
   void set_linestyle (const std::string& s, bool use_stipple)
   {
+    if (s != "-")
+      use_stipple = true;
     opengl_renderer::set_linestyle (s, use_stipple);
     if (use_stipple)
       gl2psEnable (GL2PS_LINE_STIPPLE);


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33765>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]