[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - desktop/source
Jan Holesovsky
kendy at collabora.com
Thu Feb 11 14:18:08 UTC 2016
desktop/source/lib/init.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9e4e81a297b39e17ce6f2b80c3f0adbb7be31cd3
Author: Jan Holesovsky <kendy at collabora.com>
Date: Thu Feb 11 10:35:37 2016 +0100
lok: Only add interaction handler when LOK fully initialized.
Necessary for unit testing.
Change-Id: I8db8b4c469864a915a00f8d8c4932634d74f11a7
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index d5bec92..27bf2a2 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1177,7 +1177,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
std::vector<beans::PropertyValue> aPropertyValuesVector(jsonToPropertyValuesVector(pArguments));
// handle potential interaction
- if (aCommand == ".uno:Save")
+ if (gImpl && aCommand == ".uno:Save")
{
rtl::Reference<LOKInteractionHandler> const pInteraction(
new LOKInteractionHandler(::comphelper::getProcessComponentContext(), "save", gImpl, pDocument));
More information about the Libreoffice-commits
mailing list