classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] RFC: GdkGraphics2D.setBackground() set to white if null


From: Mark Wielaard
Subject: Re: [cp-patches] RFC: GdkGraphics2D.setBackground() set to white if null
Date: Tue, 03 Jan 2006 23:43:59 +0100

Hi,

On Tue, 2006-01-03 at 23:20 +0100, Mark Wielaard wrote:
> 2006-01-03  Mark Wielaard  <address@hidden>
> 
>     * gnu/java/awt/peer/gtk/GdkGraphics2D.java (setBackground): Set to
>     Color.WHITE if null.
> 
> This was inspired by setColor() which does the same (but defaults to
> black). What do you think?

Thomas said (offlist) this was fine and said the actual patch was
missing. So here is the patch.

Committed,

Mark

diff -u -r1.52 GdkGraphics2D.java
--- gnu/java/awt/peer/gtk/GdkGraphics2D.java    30 Oct 2005 13:48:44 -0000     
1.52
+++ gnu/java/awt/peer/gtk/GdkGraphics2D.java    3 Jan 2006 22:42:31 -0000
@@ -1088,6 +1088,8 @@

   public void setBackground(Color c)
   {
+    if (c == null)
+      c = Color.WHITE;
     bg = c;
   }


Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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