diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-16 16:45:21 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-16 16:19:10 +0000 |
commit | 5bf3ae663a2189e37959235cda8c6a4051e10a1a (patch) | |
tree | 8f5c8348355a009425c7c82780a6b63605775ef9 /desktop | |
parent | e841ed93d6c6d817be1f7fdc18ff971325c861cc (diff) |
comphelper: enable LibreOfficeKit::isViewCallback() by default
This requires porting the sw/sd/sc_tiledrendering test code to the new
internal API, as only the public LOK API is unchanged.
Change-Id: Ic6a2f96421da4a16bdee7d0cbb3f6e35bc6ddff9
Reviewed-on: https://gerrit.libreoffice.org/26379
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/README.vars | 2 | ||||
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/README.vars b/desktop/README.vars index b84a2700c710..39e3aaa20436 100644 --- a/desktop/README.vars +++ b/desktop/README.vars @@ -13,4 +13,4 @@ LibreOfficeKit -------------- LOK_DEBUG - Draw a small red rectangle in the top left corner so that it's easy to see where a new tile begins. -LOK_VIEW_CALLBACK - Use incomplete per-view callbacks instead of a single one. +LOK_MODEL_CALLBACK - Use old document-global callback instead of multiple per-view ones. diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 5237d2942a4e..bd31b9b54e2a 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2136,7 +2136,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char if (eStage != SECOND_INIT) comphelper::LibreOfficeKit::setActive(); - static bool bViewCallback = getenv("LOK_VIEW_CALLBACK"); + static bool bViewCallback = !getenv("LOK_MODEL_CALLBACK"); comphelper::LibreOfficeKit::setViewCallback(bViewCallback); if (eStage != PRE_INIT) |