diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-03-25 15:44:52 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-30 09:23:49 +0200 |
commit | dd3eb52e5b9837e6408b0c2e9b44dc63119cd62c (patch) | |
tree | a932a9ec997f2a40fd7b6536dc0c72532f4defaf /sc | |
parent | 9d76382efb4e89d2c9bcf43922e1a2527811a51a (diff) |
These checks are cheap, simplify.
Change-Id: I20a5eba0c52499d9898a7ba2f5d68c5fe3bee610
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 7e58e51f4a90..1a8a222dd379 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5936,10 +5936,9 @@ void ScGridWindow::UpdateCursorOverlay() // notify the LibreOfficeKit too, but only if there's no // selection yet, to avoid setting the LOK selection twice // (once for the cell only, and then for the selection) - ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer(); - if (pDrawLayer->isTiledRendering() && !pViewData->GetMarkData().IsMarked() && !pViewData->GetMarkData().IsMultiMarked()) + if (!pViewData->GetMarkData().IsMarked() && !pViewData->GetMarkData().IsMultiMarked()) { - updateLibreOfficeKitSelection(pDrawLayer, aRanges); + updateLibreOfficeKitSelection(pDoc->GetDrawLayer(), aRanges); } } } |