[Libreoffice-commits] core.git: editeng/source
Caolán McNamara
caolanm at redhat.com
Tue Feb 2 14:53:11 UTC 2016
editeng/source/editeng/impedit.cxx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit c3224db8baa443253584954d1d54651c9d863304
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Feb 2 14:51:02 2016 +0000
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
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 36bd526..8e9f48c 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1403,12 +1403,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();
}
}
}
More information about the Libreoffice-commits
mailing list