2005-09-23 Lillian Angel <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicTreeUI.java
(paintRecursive): Changed clip to be the visible
rectangle of the view.
Index: javax/swing/plaf/basic/BasicTreeUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTreeUI.java,v
retrieving revision 1.81
diff -u -r1.81 BasicTreeUI.java
--- javax/swing/plaf/basic/BasicTreeUI.java 23 Sep 2005 15:14:54 -0000 1.81
+++ javax/swing/plaf/basic/BasicTreeUI.java 23 Sep 2005 17:01:47 -0000
@@ -3127,7 +3127,7 @@
int paintRecursive(Graphics g, int indentation, int descent, int childNumber,
int depth, JTree tree, TreeModel mod, Object curr)
{
- Rectangle clip = g.getClipBounds();
+ Rectangle clip = tree.getVisibleRect();
if (indentation > clip.x + clip.width + rightChildIndent
|| descent > clip.y + clip.height + getRowHeight())
return descent;
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches