diff options
author | Bogdan Gheorghe <gheorghe> | 2008-07-03 21:16:29 +0000 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe> | 2008-07-03 21:16:29 +0000 |
commit | 5976441158285c664d97c00b1b2f9d513e2dc43e (patch) | |
tree | 7461be0a229dc2f14c18d723dae26044d6c04533 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse | |
parent | fc78f2fb08777e19e6ab654569447f17d63df7b9 (diff) | |
download | eclipse.platform.swt-5976441158285c664d97c00b1b2f9d513e2dc43e.tar.gz eclipse.platform.swt-5976441158285c664d97c00b1b2f9d513e2dc43e.tar.xz eclipse.platform.swt-5976441158285c664d97c00b1b2f9d513e2dc43e.zip |
239231 Text.getCaretLineNumber() differs between Windows and Linux
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java index 7caea53c2f..fc3ccedd13 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java @@ -555,7 +555,7 @@ public int getBorderWidth () { */ public int getCaretLineNumber () { checkWidget (); - if ((style & SWT.SINGLE) != 0) return 1; + if ((style & SWT.SINGLE) != 0) return 0; byte [] position = new byte [ITER_SIZEOF]; int /*long*/ mark = OS.gtk_text_buffer_get_insert (bufferHandle); OS.gtk_text_buffer_get_iter_at_mark (bufferHandle, position, mark); |