From dd3eb52e5b9837e6408b0c2e9b44dc63119cd62c Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 25 Mar 2015 15:44:52 +0100 Subject: These checks are cheap, simplify. Change-Id: I20a5eba0c52499d9898a7ba2f5d68c5fe3bee610 --- sc/source/ui/view/gridwin.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sc') 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); } } } -- cgit