summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-02 14:51:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-02 14:52:34 +0000
commitc3224db8baa443253584954d1d54651c9d863304 (patch)
treecb545b78a04ab0848079236244fad7bde5efec71
parent72c1fb8c3c6be3c75b9cb26755adafb7d58b10b0 (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
-rw-r--r--editeng/source/editeng/impedit.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 36bd52685215..8e9f48c740b4 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();
}
}
}