CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Robert Schuster <[EMAIL PROTECTED]> 06/04/01 15:08:28
Modified files: javax/swing/text: CompositeView.java BoxView.java Utilities.java WrappedPlainView.java . : ChangeLog Log message: Fixes PR #26843 (for real!). 2006-04-01 Robert Schuster <[EMAIL PROTECTED]> * javax/swing/text/CompositeView.java: (modelToView): Throw BadLocationException when no child view can be found, restructed to throw exception as early as possible. (viewToModel): Use mutable allocation as argument for viewToModel call on child view. * javax/swing/text/BoxView.java: (getViewAtPoint): Call setBounds() r before method returns with suitable child view. * javax/swing/text/Utilities.java: (getPositionBelow): Added try-catch-block around modelToView call, added method return when BadLocationException was thrown. * javax/swing/text/WrappedPlainView.java: (WrappedLine.viewToModel): Changed '<' to '<=' in if-expression, added note about meaning of rect.x and rect.width, removed unneeded checks, added code to not return the last possible document offset. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/CompositeView.java.diff?tr1=1.15&tr2=1.16&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/BoxView.java.diff?tr1=1.17&tr2=1.18&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/Utilities.java.diff?tr1=1.26&tr2=1.27&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/WrappedPlainView.java.diff?tr1=1.12&tr2=1.13&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6972&tr2=1.6973&r1=text&r2=text