diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-02-24 00:59:17 +0530 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2021-04-02 19:49:03 +0200 |
commit | c488acfc2d163b421e07518597668d18c7b88a67 (patch) | |
tree | acff6e77b727bb2ed6d7cc18b974a5c6e5fe6d8f /editeng | |
parent | 79b29984a114b6eca76c49ef7b9841a5b5de74f4 (diff) |
avoid LOK text selection update when reference cell is in different tab
Change-Id: I511b9c5a27f97b6e14e9a844179c27a96997abe1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111315
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit 01f86c59531b29cd06dd53a7a6e4556fb97cbb24)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113536
Tested-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 8e7c62f224e6..82cb86add8dd 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -415,11 +415,13 @@ vcl::Cursor* EditView::GetCursor() const return pImpEditView->pCursor.get(); } -void EditView::InsertText( const OUString& rStr, bool bSelect ) +void EditView::InsertText( const OUString& rStr, bool bSelect, bool bLOKShowSelect ) { EditEngine* pEE = pImpEditView->pEditEngine; - pImpEditView->DrawSelectionXOR(); + + if (bLOKShowSelect) + pImpEditView->DrawSelectionXOR(); EditPaM aPaM1; if ( bSelect ) @@ -441,7 +443,8 @@ void EditView::InsertText( const OUString& rStr, bool bSelect ) else pImpEditView->SetEditSelection( EditSelection( aPaM2, aPaM2 ) ); - pEE->FormatAndUpdate( this ); + if (bLOKShowSelect) + pEE->FormatAndUpdate( this ); } bool EditView::PostKeyEvent( const KeyEvent& rKeyEvent, vcl::Window const * pFrameWin ) |