classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Cairo stroke fix


From: Thomas Fitzsimmons
Subject: [cp-patches] Cairo stroke fix
Date: Sat, 20 Aug 2005 21:32:06 -0400

Hi,

This patch fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22867 by
clearing the Cairo dash setting when dashes == null.  I committed this
to mainline.

Tom

2005-08-20  Thomas Fitzsimmons  <address@hidden>

        * gnu/java/awt/peer/gtk/GdkGraphics2D.java (setStroke): Clear
        dashes if dashes is null.
        (setStrokeUnlocked): Likewise.

Index: gnu/java/awt/peer/gtk/GdkGraphics2D.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,v
retrieving revision 1.40
diff -u -r1.40 GdkGraphics2D.java
--- gnu/java/awt/peer/gtk/GdkGraphics2D.java    18 Aug 2005 01:22:00 -0000      
1.40
+++ gnu/java/awt/peer/gtk/GdkGraphics2D.java    21 Aug 2005 01:32:08 -0000
@@ -867,6 +867,8 @@
            cairoSetDash(double_dashes, double_dashes.length,
                         (double) bs.getDashPhase());
          }
+       else
+         cairoSetDash(new double[0], 0, 0.0);
       }
   }
 
@@ -889,6 +891,8 @@
            cairoSetDashUnlocked(double_dashes, double_dashes.length,
                                  (double) bs.getDashPhase());
          }
+       else
+         cairoSetDashUnlocked(new double[0], 0, 0.0);
       }
   }
 

reply via email to

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