diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | javax/swing/text/WrappedPlainView.java | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-05-03 Audrius Meskauskas <AudriusA@Bioinformatics.org> + + * javax/swing/text/WrappedPlainView.java (WrappedLine.modelToView): + Do not check pos < currLineEnd if currLineStart == currLineEnd. + 2006-05-03 Raif S. Naffah <raif@swiftdsl.com.au> * tools/gnu/classpath/tools/keytool/Command.java (getCallbackHandler): diff --git a/javax/swing/text/WrappedPlainView.java b/javax/swing/text/WrappedPlainView.java index c9ab27c36..e2a183840 100644 --- a/javax/swing/text/WrappedPlainView.java +++ b/javax/swing/text/WrappedPlainView.java @@ -563,7 +563,8 @@ public class WrappedPlainView extends BoxView implements TabExpander // If pos is between currLineStart and currLineEnd then just find // the width of the text from currLineStart to pos and add that // to rect.x - if (pos >= currLineStart && pos < currLineEnd) + if (pos >= currLineStart && pos < currLineEnd || + (currLineEnd==currLineStart) ) { try { |