changeset 1778:901bde28e173

Fixed RT-24876: Fix handling of HitInfo
author leifs
date Thu, 20 Sep 2012 13:24:25 -0700
parents 3a7a85ab1839
children a09a117dc223
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Thu Sep 20 15:32:39 2012 -0400
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Thu Sep 20 13:24:25 2012 -0700
@@ -674,7 +674,7 @@
     }
 
     public void positionCaret(HitInfo hit, boolean select) {
-        int pos = hit.getInsertionIndex();
+        int pos = hit.getCharIndex();
         boolean isNewLine =
                (pos > 0 &&
                 pos < getSkinnable().getLength() &&