diff --git a/widget/src/gtk/nsWidget.cpp b/widget/src/gtk/nsWidget.cpp index 36270cdc1b58..5f9034dc8370 100644 --- a/widget/src/gtk/nsWidget.cpp +++ b/widget/src/gtk/nsWidget.cpp @@ -3002,14 +3002,14 @@ nsWidget::SetXICBaseFontSize(int height) void nsWidget::SetXICSpotLocation(nsPoint aPoint) { - NS_ASSERTION( (aPoint.y >0), "strange position for XIC"); - if(aPoint.y <= 0) - return; - if(mIMEEnable == PR_FALSE) { return; } + NS_ASSERTION( (aPoint.y >0), "strange position for XIC"); + if(aPoint.y <= 0) + return; + if (!mIC) GetXIC(); if (mIC) {