summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-03-25 15:44:52 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-30 09:23:49 +0200
commitdd3eb52e5b9837e6408b0c2e9b44dc63119cd62c (patch)
treea932a9ec997f2a40fd7b6536dc0c72532f4defaf
parent9d76382efb4e89d2c9bcf43922e1a2527811a51a (diff)
These checks are cheap, simplify.
Change-Id: I20a5eba0c52499d9898a7ba2f5d68c5fe3bee610
-rw-r--r--sc/source/ui/view/gridwin.cxx5
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);
}
}
}