diff options
author | Eike Rathke <erack@redhat.com> | 2016-11-30 14:47:58 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-11-30 14:48:34 +0100 |
commit | 7c20d0174c59d46b11fc5029fe3fc0c00f5dc6d0 (patch) | |
tree | d4cedeedf681ab2fe814ce657069cf277b01a822 /editeng | |
parent | fff0cf20e4020af9e2c134549a5164417fde30b7 (diff) |
Resolves: tdf#104152 suppress notifications from EditEngine during Paste
Broadcast once at the end instead to notify a11y.
Change-Id: I12383b6efbbb2b149f0d73c67d8576fcc050b253
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 81f0202bca4d..3d271bf3f666 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1521,9 +1521,14 @@ void ImpEditView::Paste( css::uno::Reference< css::datatransfer::clipboard::XCli } else { + // Prevent notifications of paragraph inserts et al that would trigger + // a11y to format content in a half-ready state when obtaining + // paragraphs. Collect and broadcast when done instead. + pEditEngine->pImpEditEngine->EnterBlockNotifications(); aSel = pEditEngine->InsertText( xDataObj, OUString(), aSel.Min(), bUseSpecial && pEditEngine->GetInternalEditStatus().AllowPasteSpecial()); + pEditEngine->pImpEditEngine->LeaveBlockNotifications(); } aPasteOrDropInfos.nEndPara = pEditEngine->GetEditDoc().GetPos( aSel.Max().GetNode() ); |