diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-09-21 22:08:46 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-09-21 22:12:22 +0200 |
commit | eb5e45782b0e805455d383e9d020aae5bb70d619 (patch) | |
tree | 7b68f5a6610dd1ff86239b242b7c2c939c9b805c /editeng | |
parent | 165cd6a40ab4a53ac273e2a4500f82a3249b855a (diff) |
lok: Don't freeze the LibreOfficeKit via the spell-checking popup menu.cp-5.3-26
Change-Id: I045ed919daeefca612d7908dd7de50c36536c9a0
Reviewed-on: https://gerrit.libreoffice.org/42608
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index a246587bac45..6ffc0730990a 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -983,7 +983,11 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo EPaM aP = pImpEditView->pEditEngine->pImpEditEngine->CreateEPaM(aPaM); EPaM aP2 = pImpEditView->pEditEngine->pImpEditEngine->CreateEPaM(aPaM2); - sal_uInt16 nId = aPopupMenu->Execute( pImpEditView->GetWindow(), aTempRect, PopupMenuFlags::NoMouseUpClose ); + sal_uInt16 nId = 0; + // TODO for LOK, we'll need to convert the spelling popup menu to + // something much more sfx2-based & non-modal... + if (!comphelper::LibreOfficeKit::isActive()) + nId = aPopupMenu->Execute( pImpEditView->GetWindow(), aTempRect, PopupMenuFlags::NoMouseUpClose ); aPaM2 = pImpEditView->pEditEngine->pImpEditEngine->CreateEditPaM(aP2); aPaM = pImpEditView->pEditEngine->pImpEditEngine->CreateEditPaM(aP); |