changeset 5705:84f914be6ad1

RT-34162: [macosx] Regression in Input Method panel positioning Reviewed-by: anthony, leif
author Petr Pchelko <petr.pchelko@oracle.com>
date Wed, 13 Nov 2013 12:06:49 +0400
parents 026734a0cfa1
children be453268f7f8
files modules/graphics/src/main/native-glass/mac/GlassView3D.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/mac/GlassView3D.m	Tue Nov 12 16:05:50 2013 -0800
+++ b/modules/graphics/src/main/native-glass/mac/GlassView3D.m	Wed Nov 13 12:06:49 2013 +0400
@@ -757,9 +757,9 @@
 
 - (NSRect) firstRectForCharacterRange:(NSRange)theRange actualRange:(NSRangePointer)actualRange
 {
-    IMLOG("firstRectForCharacterRange called %lu %lu", 
-            (unsigned long)theRange.location, (unsigned long)theRange.length);    
-    NSRect result = [self->_delegate getInputMethodCandidatePosRequest:(int)theRange.length];
+    IMLOG("firstRectForCharacterRange called %lu %lu",
+          (unsigned long)theRange.location, (unsigned long)theRange.length);
+    NSRect result = [self->_delegate getInputMethodCandidatePosRequest:0];
     NSRect screenFrame = [[NSScreen mainScreen] frame];
     result.origin.y = screenFrame.size.height - result.origin.y;
     return result;