path: root/comphelper/source/misc/lok.cxx
diff options
authorAshod Nakashian <>2016-06-16 07:28:58 -0400
committerAshod Nakashian <>2016-06-16 11:59:55 +0000
commit60fdcda65bad242f99895cb453182578250fbdea (patch)
tree72e80652f345417180b1bde41e0ed89d259c471a /comphelper/source/misc/lok.cxx
parent0dbffca63191712d9f77297061a3d4651b8410aa (diff)
LOK: tile rendering regression fix
Calc fast rendering requires us to offset the are being rendered and shift all bitmaps accordingly. This however is breaking Impress rendering since the offseting logic is common (in svx and vcl). This adds new API to enable or disable this local rendering (as opposed to rendering a full document as was previously done. The new flag is then set by Calc to enable the offseting logic in isolation without affecting other applications. In one case isolation was achieved by checking the MapModeUnit. Change-Id: Ia0aadfc3f6df7c1a891b97dc731f5897414c9420 Reviewed-on: Reviewed-by: Ashod Nakashian <> Tested-by: Ashod Nakashian <>
Diffstat (limited to 'comphelper/source/misc/lok.cxx')
1 files changed, 12 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 279ec65c600c..d2467e75b324 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -39,6 +39,18 @@ bool isViewCallback()
return g_bViewCallback;
+static bool g_bLocalRendering(false);
+void setLocalRendering(bool bLocalRendering)
+ g_bLocalRendering = bLocalRendering;
+bool isLocalRendering()
+ return g_bLocalRendering;
static void (*pStatusIndicatorCallback)(void *data, statusIndicatorCallbackType type, int percent)(nullptr);
static void *pStatusIndicatorCallbackData(nullptr);