summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2006-04-18 21:30:22 +0000
committerVeronika Irvine <veronika>2006-04-18 21:30:22 +0000
commit89c5e345fc8cc6277e73a276f7513638802da079 (patch)
tree8462c300e7c3fc9c224eb0a4376ae3dc97c16eed /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
parent94eca708710e7f0e16144697653aeb4db6c9e562 (diff)
downloadeclipse.platform.swt-89c5e345fc8cc6277e73a276f7513638802da079.tar.gz
eclipse.platform.swt-89c5e345fc8cc6277e73a276f7513638802da079.tar.xz
eclipse.platform.swt-89c5e345fc8cc6277e73a276f7513638802da079.zip
start at 0 not 2
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java
index 146f45d31d..14ee25b286 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java
@@ -43,7 +43,7 @@ void showDropTargetEffect(int effect, int x, int y) {
}
} else {
try {
- int startOffset = text.getOffsetAtLocation(new Point(2, pt.y));
+ int startOffset = text.getOffsetAtLocation(new Point(0, pt.y));
int endOffset = maxOffset;
int line = text.getLineAtOffset(startOffset);
int lineCount = text.getLineCount();