[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Patch: Text fix
From: |
Lillian Angel |
Subject: |
Re: [cp-patches] Patch: Text fix |
Date: |
Thu, 17 Nov 2005 15:50:04 -0500 |
Patch attached.
On Thu, 2005-11-17 at 15:43 -0500, Lillian Angel wrote:
> This fixes several assertion error and NPES found. Lots of functions
> were not implemented according to the API. This is now fixed to work
> like the JDK.
>
> 2005-11-17 Lillian Angel <address@hidden>
>
> Fixes PR classpath/PR24721
> * javax/swing/text/BoxView.java
> (getViewAtPoint): Added check in to return the last view,
> if one exists and the point was not contained in the rectangle.
> This is what the JDK does.
> * javax/swing/text/CompositeView.java
> (viewToModel): Fixed API documentation. Added check to make sure
> x and y are greater than 0. Otherwise, 0 is returned.
> * javax/swing/text/DefaultCaret.java
> (moveDot): Added check to match API specs.
> (setDot): Likewise.
> * javax/swing/text/GlyphView.java
> (viewToModel): Removed assert. This is not needed here. The
> point does not need to be in the rectangle.
>
>
>
>
> _______________________________________________
> Classpath-patches mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/classpath-patches
patch.diff
Description: Text Data