summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-04-21 19:16:29 +0000
committerFelipe Heidrich <fheidric>2009-04-21 19:16:29 +0000
commited227678b8e6c8351fa450a512f03bc00379953e (patch)
tree9dbea5ffe8e9369983d10f356a52a3584b179e66 /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java
parentc93c0d3664c9ac2317ca7f675aec18f25b752033 (diff)
downloadeclipse.platform.swt-ed227678b8e6c8351fa450a512f03bc00379953e.tar.gz
eclipse.platform.swt-ed227678b8e6c8351fa450a512f03bc00379953e.tar.xz
eclipse.platform.swt-ed227678b8e6c8351fa450a512f03bc00379953e.zip
Bug 273095: Can't insert characters into a StyledText using the Character Palette on OS X
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java
index a8b3c5c72f..78443c87f9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java
@@ -336,9 +336,7 @@ boolean hasMarkedText (int /*long*/ id, int /*long*/ sel) {
}
boolean insertText (int /*long*/ id, int /*long*/ sel, int /*long*/ string) {
- if (startOffset == -1) {
- return false;
- }
+ if (startOffset == -1) return true;
NSString str = new NSString (string);
if (str.isKindOfClass (OS.objc_getClass ("NSAttributedString"))) {
str = new NSAttributedString (string).string ();