diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-13 09:12:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-13 09:13:38 +0100 |
commit | 64659d59310b17ce6ca410bfca2e231d8b79b0ff (patch) | |
tree | 2e847f8da6181ea4e7d1cc1791b8645bc7b38d9a /sc/source/ui/view/gridwin4.cxx | |
parent | 9dd258e7029847537e61f34936e1ef200f3b7233 (diff) |
sc: clean up remaining non-static isTiledRendering() usage
Change-Id: I546f644e220069904fc2723f953ce2e6e2bfaca3
Diffstat (limited to 'sc/source/ui/view/gridwin4.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 387db1c09b70..4a4e75670cd5 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -30,6 +30,7 @@ #include <vcl/settings.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> +#include <comphelper/lok.hxx> #include <svx/svdview.hxx> #include "tabvwsh.hxx" @@ -383,7 +384,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod // all the rendering should go through PaintTile() in that case. // TODO revisit if we can actually turn this into an assert(), and clean // up the callers - if (rDoc.GetDrawLayer()->isTiledRendering()) + if (comphelper::LibreOfficeKit::isActive()) return; ScModule* pScMod = SC_MOD(); @@ -523,7 +524,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI ScDocShell* pDocSh = pViewData->GetDocShell(); ScDocument& rDoc = pDocSh->GetDocument(); const ScViewOptions& rOpts = pViewData->GetOptions(); - bool bIsTiledRendering = rDoc.GetDrawLayer()->isTiledRendering(); + bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive(); SCTAB nTab = aOutputData.nTab; SCCOL nX1 = aOutputData.nX1; @@ -1588,7 +1589,7 @@ void ScGridWindow::GetSelectionRects( ::std::vector< Rectangle >& rPixelRects ) if (nY1 < nPosY) nY1 = nPosY; - if (!pDoc->GetDrawLayer()->isTiledRendering()) + if (!comphelper::LibreOfficeKit::isActive()) { // limit the selection to only what is visible on the screen SCCOL nXRight = nPosX + pViewData->VisibleCellsX(eHWhich); |