Code cleanup:  One more line wrapping change.  Plus there is a bug (looks like copy/paste
error) where the wrong node view is used for the character count.  I don't know what
symptoms it would cause, but it is clearly wrong, based on all the other times similar
logic is used.



git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1747379 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinParagraphView.java b/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinParagraphView.java
index ab74358..151f9ac 100644
--- a/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinParagraphView.java
+++ b/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinParagraphView.java
@@ -471,7 +471,7 @@
 
                 if (offset >= firstNodeSegment.offset
                     && offset < lastNodeSegment.offset
-                        + firstNodeSegment.nodeView.getCharacterCount()) {
+                        + lastNodeSegment.nodeView.getCharacterCount()) {
                     rowIndex = i;
                     break;
                 }
@@ -501,8 +501,7 @@
                         int characterCount = segment.nodeView.getCharacterCount();
 
                         if (offset >= nodeViewOffset && offset < nodeViewOffset + characterCount) {
-                            characterBounds = segment.nodeView.getCharacterBounds(offset
-                                - nodeViewOffset);
+                            characterBounds = segment.nodeView.getCharacterBounds(offset - nodeViewOffset);
 
                             if (characterBounds != null) {
                                 characterBounds = characterBounds.translate(
@@ -523,4 +522,4 @@
         return characterBounds;
     }
 
-}
\ No newline at end of file
+}