Project: SWT
Bug 293513 Text.getCaretPosition() returns 0 after setting text
Reported: 2009-10-27 17:02:09 | Status: resolved fixed

After setting text on a Text, Text.getCaretPosition() always returns 0 even if the caret is really not in the 0 position. Looking at the code, here's my analysis: * Text.setText() calls Text.setEditText(), which sets selectionRange to null * Text.getCaretPosition() always returns 0 when selectionRange is null Version: 3.6.0 Build id: I20091027-0100

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java