summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-04-25 16:11:25 +0200
committerJan Holesovsky <kendy@collabora.com>2017-04-25 16:18:16 +0200
commitdec025d4cb51f252ecd7e981fe36800cf2bedff5 (patch)
tree15616592761d77da802c72f237a8b8842c8d1067 /desktop
parenta2c055a69b341e120dcb0d5d993ee7c387b68d68 (diff)
The debugging rectangles are not needed any more.
We have the debugging console in the loleafleat instead these days. Change-Id: I316fa6d101a14e1bc7f2a8fab554f516ec55644d
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 8f350cd61d46..a419eb3ab84c 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1838,19 +1838,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.
- tools::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