Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-09-06 20:38:45 +0000
committerFelipe Heidrich2007-09-06 20:38:45 +0000
commit0dc3b3f3e1b37ff96f33ea482aef446b37db74f3 (patch)
treee8a8786a83b2d415b66769da0dcdc0c259c16e44
parent1de9af6c405fe7bc81a6b1df47f0743e5fa8ba91 (diff)
downloadeclipse.platform.swt-0dc3b3f3e1b37ff96f33ea482aef446b37db74f3.tar.gz
eclipse.platform.swt-0dc3b3f3e1b37ff96f33ea482aef446b37db74f3.tar.xz
eclipse.platform.swt-0dc3b3f3e1b37ff96f33ea482aef446b37db74f3.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index ee0ad6949b..5ff50f4894 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -3849,7 +3849,7 @@ int getOffsetAtPoint(int x, int y, int lineIndex) {
}
int getOffsetAtPoint(int x, int y, int[] trailing) {
if (y + getVerticalScrollOffset() < 0 || x + horizontalScrollOffset < 0) {
- SWT.error(SWT.ERROR_INVALID_ARGUMENT);
+ return -1;
}
int bottomIndex = getPartialBottomIndex();
int height = getLinePixel(bottomIndex + 1);

Back to the top