[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: Text fix
From: |
Lillian Angel |
Subject: |
[cp-patches] Patch: Text fix |
Date: |
Thu, 17 Nov 2005 15:43:21 -0500 |
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.
- [cp-patches] Patch: Text fix,
Lillian Angel <=