[Libreoffice-commits] .: sc/source

Noel Power noelp at kemper.freedesktop.org
Tue Nov 29 07:59:18 PST 2011


 sc/source/ui/app/inputwin.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 71e77655660fa719ca0e91c7daa94e045e3006a3
Author: Noel Power <noel.power at novell.com>
Date:   Tue Nov 29 15:58:48 2011 +0000

    detect TEXTMODIFIED event from EditEngine ( and add missing StopEditEngine )
    
    not sure if the StopEditEngine method ever gets called but we should have it tunnel to the base class just in case.

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 63265f9..650293a 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1180,7 +1180,10 @@ IMPL_LINK(ScMultiTextWnd, ModifyHdl, EENotify*, pNotify)
 IMPL_LINK(ScMultiTextWnd, NotifyHdl, EENotify*, pNotify)
 {
     // need to process EE_NOTIFY_TEXTVIEWSCROLLED here
-    if ( pNotify && pNotify->eNotificationType == EE_NOTIFY_TEXTVIEWSCROLLED )
+    // sometimes when pasting we don't seem to get EE_NOTIFY_TEXTVIEWSCROLLED
+    // but we always seem to get EE_NOTIFY_TEXTMODIFIED
+    if ( pNotify && ( pNotify->eNotificationType == EE_NOTIFY_TEXTVIEWSCROLLED
+                 ||   pNotify->eNotificationType == EE_NOTIFY_TEXTMODIFIED ) )
         SetScrollBarRange();
     return 0;
 }
@@ -1362,8 +1365,9 @@ void ScMultiTextWnd::InitEditEngine(SfxObjectShell* pObjSh)
     }
 }
 
-void ScMultiTextWnd::StopEditEngine( sal_Bool /*bAll*/ )
+void ScMultiTextWnd::StopEditEngine( sal_Bool bAll )
 {
+    ScTextWnd::StopEditEngine( bAll );
 }
 
 void ScMultiTextWnd::SetTextString( const String& rNewString )


More information about the Libreoffice-commits mailing list