summaryrefslogtreecommitdiff
path: root/xmloff/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-04 14:08:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-04 15:37:36 +0200
commitd30810b5a116816fe8a6d3341aa98e43adc56de2 (patch)
treeb144a982781fa00a218610cf929e9c1a81233678 /xmloff/source/core
parent690d4eb71509649ad147cfe60f5b97e2cfaaa519 (diff)
dont instantiate TextImport unless we need it
speeds up loading XColorList and related UI elements Change-Id: I737137669afea8a70dfefa78cf9f8a325d16fbcb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136806 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r--xmloff/source/core/xmlimp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 3d9cb9f1edb1..873f557f8982 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -598,7 +598,8 @@ void SAL_CALL SvXMLImport::endDocument()
// #i9518# All the stuff that accesses the document has to be done here, not in the dtor,
// because the SvXMLImport dtor might not be called until after the document has been closed.
- GetTextImport()->MapCrossRefHeadingFieldsHorribly();
+ if (mxTextImport)
+ mxTextImport->MapCrossRefHeadingFieldsHorribly();
if (mpImpl->mpRDFaHelper)
{