diff -r 0fd27995241b -r 9ac0a0a7da70 javauis/lcdui_akn/lcdui/src/CMIDTextEditorEdwin.cpp --- a/javauis/lcdui_akn/lcdui/src/CMIDTextEditorEdwin.cpp Tue May 11 16:07:20 2010 +0300 +++ b/javauis/lcdui_akn/lcdui/src/CMIDTextEditorEdwin.cpp Tue May 25 12:34:19 2010 +0300 @@ -37,10 +37,10 @@ // --------------------------------------------------------------------------- // CMIDTextEditorEdwin::CMIDTextEditorEdwin(CMIDEdwinUtils& aEdwinUtils) - : CEikEdwin(), - iMultiline(EFalse), - iCursorPosForAction(KErrNotFound), - iEdwinUtils(aEdwinUtils) + : CEikEdwin(), + iMultiline(EFalse), + iCursorPosForAction(KErrNotFound), + iEdwinUtils(aEdwinUtils) { DEBUG("CMIDTextEditorEdwin::CMIDTextEditorEdwin +"); @@ -247,6 +247,12 @@ // problems. Currently it just handles the selection color. CWindowGc& gc = SystemGc(); + // If scaling is on, clip to canvas rect is needed. + if (iIsScalingOn) + { + gc.SetClippingRect(iOnScreenCanvasRect); + } + // Draw background with alpha. gc.SetBrushColor(iBackgroundColor); gc.Clear(aRect); @@ -254,6 +260,12 @@ // Now draw the content of the editor. CEikEdwin::Draw(aRect); + // cancel of clip + if (iIsScalingOn) + { + gc.CancelClippingRect(); + } + // Part of transparency workaround. Set drawing not active. iDrawInvoked = EFalse;