summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorAshod Nakashian <ashodnakashian@yahoo.com>2017-11-03 22:33:33 -0400
committerAshod Nakashian <ashnakash@gmail.com>2017-11-09 13:34:49 +0100
commita8a3fa2e4d24e8ea10bc4fee352fd4d7b82b2c79 (patch)
tree24050d5a7bd1999c2cb7f5a080a9db0a631b9eba /sfx2/source
parent4418372084001ae6ae8153bf79a551a5bd5b40d4 (diff)
TSCP: restore paragraph classification from DOC(X)
Change-Id: I81f9a98f618b32e13c5ce92489846a4e20cc23d7 Reviewed-on: https://gerrit.libreoffice.org/44325 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/view/classificationhelper.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index e5748a61c3ab..82287da47171 100644
--- a/sfx2/source/view/classificationhelper.cxx
+++ b/sfx2/source/view/classificationhelper.cxx
@@ -548,6 +548,9 @@ bool SfxClassificationHelper::ShowPasteInfo(SfxClassificationCheckPasteResult eR
SfxClassificationHelper::SfxClassificationHelper(const uno::Reference<document::XDocumentProperties>& xDocumentProperties, bool bUseLocalizedPolicy)
: m_pImpl(o3tl::make_unique<Impl>(xDocumentProperties, bUseLocalizedPolicy))
{
+ if (!xDocumentProperties.is())
+ return;
+
uno::Reference<beans::XPropertyContainer> xPropertyContainer = xDocumentProperties->getUserDefinedProperties();
if (!xPropertyContainer.is())
return;