Project: SWT
Bug 11994 StyledText - replace getXAtOffset(caretOffset) with caret.getLocation().x
Reported: 2002-03-20 17:01:59 | Status: resolved fixed

build 20020319 In a number of places we get the location of the caret by calling getXAtOffset (caretOffset). I haven't looked at the code but we may be able to replace this with a call to caret.getLocation().x. This won't be possible though if the caret is null (i.e., when there is no caret). We could at least optimize the case when there is a caret.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java