Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358599 - getCaretLocation, getCaretPosition methods in Combo and Text return wrong results
Summary: getCaretLocation, getCaretPosition methods in Combo and Text return wrong res...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 3.8 M3   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 10:11 EDT by George Cheng CLA
Modified: 2011-10-21 16:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Cheng CLA 2011-09-22 10:11:35 EDT
Build Identifier: i20110916-0200

Caret position is always at the beginning of the selected text.

Reproducible: Always

Steps to Reproduce:
1.select some text
2.getCaretPosition or getCaretLocation
3.wrong result
Comment 1 Curtis Windatt CLA 2011-09-22 11:20:24 EDT
Moving to SWT
Comment 2 Felipe Heidrich CLA 2011-09-23 10:40:25 EDT
George, don't you have the fix for that already ?
Comment 3 George Cheng CLA 2011-09-23 16:21:00 EDT
(In reply to comment #2)
> George, don't you have the fix for that already ?

However, the mac version won't give the correct caret position when there are text selected. And for now, we can only return the start of the selection as the caret position.