summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-04-25 16:11:25 +0200
committerMichael Meeks <michael.meeks@collabora.com>2017-04-25 16:49:01 +0200
commit3762a86f694e742cd0cf7f4ad89cb8d2a5235a4d (patch)
tree026f97acdcc763fe73daabe9d38513e6f94e257b /desktop
parentf62d14ea33d9b936d58820300a5bee58b6cfa08a (diff)
The debugging rectangles are not needed any more.
We have the debugging console in the loleafleat instead these days. Change-Id: I316fa6d101a14e1bc7f2a8fab554f516ec55644d Reviewed-on: https://gerrit.libreoffice.org/36949 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index fdedff280e4b..971d43548611 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1842,19 +1842,6 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis,
pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight,
nTilePosX, nTilePosY, nTileWidth, nTileHeight);
-
- static bool bDebug = getenv("LOK_DEBUG") != nullptr;
- if (bDebug)
- {
- // Draw a small red rectangle in the top left corner so that it's easy to see where a new tile begins.
- Rectangle aRect(0, 0, 5, 5);
- aRect = pDevice->PixelToLogic(aRect);
- pDevice->Push(PushFlags::FILLCOLOR | PushFlags::LINECOLOR);
- pDevice->SetFillColor(COL_LIGHTRED);
- pDevice->SetLineColor();
- pDevice->DrawRect(aRect);
- pDevice->Pop();
- }
#endif
#else