PIVOT-988:  Fix the inclusion check in TextPaneSkinElementView.getCharacterBounds().
It was using >= offset && <= offset + length, when it should be just:
>= offset && < offset + length
Thus the previous element was used to get the paragraph bounds, which results in
the position being on the previous line.

This fixes a variety of problems having to do with selections in TextPane!



git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1747431 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java b/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java
index 9ffed0f..c0f0dd6 100644
--- a/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java
+++ b/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java
@@ -235,7 +235,7 @@
             int nodeViewOffset = nodeView.getOffset();
             int characterCount = nodeView.getCharacterCount();
 
-            if (offset >= nodeViewOffset && offset <= nodeViewOffset + characterCount) {
+            if (offset >= nodeViewOffset && offset < nodeViewOffset + characterCount) {
                 characterBounds = nodeView.getCharacterBounds(offset - nodeViewOffset);
 
                 if (characterBounds != null) {
@@ -310,4 +310,4 @@
     public Iterator<TextPaneSkinNodeView> iterator() {
         return new ImmutableIterator<>(nodeViews.iterator());
     }
-}
\ No newline at end of file
+}