[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Java2D vs Swing fix
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Java2D vs Swing fix |
Date: |
Sun, 25 Sep 2005 00:05:45 +0200 |
I tried the Swing demo vs. Java2D (Cairo). This gave me some NPEs that
are fixed by this patch. It adds a check in
GdkGraphics2D.getClipBounds() so it does not throw an NPE when accessing
a null clip and it adds a check in JComponent.paint() so when a null
clip is encountered it sets the clip to the componenents bounds.
2005-09-24 Roman Kennke <address@hidden>
* javax/swing/JComponent.java
(paint): Check if clip == null and if so set it to the
component's
bounds.
* gnu/java/awt/peer/gtk/GdkGraphics2D.java
(getClipBounds): Added null check so that null is returned when
clip == null, instead of throwing an NPE while accessing
null.getBounds2D().
/Roman
GdkGraphics2D.diff
Description: Text Data
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Java2D vs Swing fix,
Roman Kennke <=