summaryrefslogtreecommitdiff
path: root/editeng/source/editeng
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-02-24 00:59:17 +0530
committerAndras Timar <andras.timar@collabora.com>2021-02-25 10:32:04 +0100
commit4d3f9005a105cc3d1d4cf992cbcc1e98f597a837 (patch)
treec8d11691ecd54fad884daf66e68e993af3190c53 /editeng/source/editeng
parentb5e14a769a25fb28f91f3ffa7c04140e831722f4 (diff)
avoid LOK text selection update when reference cell is in different tab
Change-Id: I511b9c5a27f97b6e14e9a844179c27a96997abe1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111346 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'editeng/source/editeng')
-rw-r--r--editeng/source/editeng/editview.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index b5eeb327aa12..aa003718b139 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -416,11 +416,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 )
@@ -442,7 +444,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 )