summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-11-29 15:58:48 +0000
committerNoel Power <noel.power@novell.com>2011-11-29 15:59:55 +0000
commit71e77655660fa719ca0e91c7daa94e045e3006a3 (patch)
tree7dc7c671adf5b5df70b84253adda480af18adbac
parent8f32b3611e3deee1c093aa780da7fbefca0aafb5 (diff)
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.
-rw-r--r--sc/source/ui/app/inputwin.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 63265f9005ff..650293aad73c 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 )