Project: SWT
Bug 239231 Text.getCaretLineNumber() differs between Windows and Linux
Reported: 2008-07-02 08:26:00 | Status: resolved fixed

Build ID: M20080221-1800 Steps To Reproduce: 1. Run attached test case on linux (I used redhat linux 5) 2. Click in text box - label displays "Caret line number is: 1" 3. Run same test case on windows: Label displays "Caret line number is: 0" More information: I would expect the line number to be 0 in both cases (as most positioning in Java is 0 based).

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