Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2011-04-27 17:55:23 +0000
committerGrant Gayed2011-04-27 17:55:23 +0000
commit16933a1424a5cd2bd9a7a5e586e0dd17a54bae34 (patch)
tree05c0354b7b714271eaeeca89bc9b097343132efe /bundles/org.eclipse.swt/Eclipse SWT WebKit
parent27a1ed4b12a30c09b5f5cf85f34fcc99920dce49 (diff)
downloadeclipse.platform.swt-16933a1424a5cd2bd9a7a5e586e0dd17a54bae34.tar.gz
eclipse.platform.swt-16933a1424a5cd2bd9a7a5e586e0dd17a54bae34.tar.xz
eclipse.platform.swt-16933a1424a5cd2bd9a7a5e586e0dd17a54bae34.zip
fix getText()
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
index 7dbab46864..9a9ee3c0e6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
@@ -697,9 +697,9 @@ public String getText () {
OS.memmove (bytes, encoding, length);
String encodingString = new String (Converter.mbcsToWcs (null, bytes));
- int /*long*/ string = OS.GString_str (data);
- length = OS.GString_len (string);
+ length = OS.GString_len (data);
bytes = new byte[length];
+ int /*long*/ string = OS.GString_str (data);
C.memmove (bytes, string, length);
try {

Back to the top