diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-02 14:51:02 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-05 15:33:22 +0000 |
commit | 1b0fa861e469c018d77f8c61c95bdaeffc1b01a1 (patch) | |
tree | 524ff2133a63235a645c0de63f7d9d5808804f75 | |
parent | e2383402d4cab93f4003e03912700a00525b7d4c (diff) |
Related: tdf#97375 a cut doesn't refresh the editview
but a delete does. The diff from delete to cut is the
EnterBlockNotifications/LeaveBlockNotifications calls so try that
Change-Id: I10147043d6fe358bf2f4f4bd6877210b86cbbd1f
(cherry picked from commit c3224db8baa443253584954d1d54651c9d863304)
Reviewed-on: https://gerrit.libreoffice.org/22048
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 453bcbea467e..8475a6aa0505 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1397,12 +1397,13 @@ void ImpEditView::CutCopy( css::uno::Reference< css::datatransfer::clipboard::XC } - if ( bCut ) + if (bCut) { - pEditEngine->pImpEditEngine->UndoActionStart( EDITUNDO_CUT ); + pEditEngine->pImpEditEngine->EnterBlockNotifications(); + pEditEngine->pImpEditEngine->UndoActionStart(EDITUNDO_CUT); DeleteSelected(); - pEditEngine->pImpEditEngine->UndoActionEnd( EDITUNDO_CUT ); - + pEditEngine->pImpEditEngine->UndoActionEnd(EDITUNDO_CUT); + pEditEngine->pImpEditEngine->LeaveBlockNotifications(); } } } |