starmath/source/mathml/import.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit d2873a0510d620de06ac3d4d30aabc9ab73ffe21 Author: dante <dante19031...@gmail.com> AuthorDate: Fri Aug 20 14:49:02 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Sep 5 16:00:50 2022 +0200 Identify OOo2OasisTransformer and act in consequence Change-Id: I99950e6dd73822ef49f9d4ef1155a5722b748127 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120786 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/starmath/source/mathml/import.cxx b/starmath/source/mathml/import.cxx index 52d47028e657..90469abaa0d1 100644 --- a/starmath/source/mathml/import.cxx +++ b/starmath/source/mathml/import.cxx @@ -231,7 +231,7 @@ ErrCode SmMLImportWrapper::Import(SfxMedium& rMedium) xInfoSet, u"com.sun.star.comp.Math.XMLSettingsImporter", 5); // Check if successful - if (nWarn == ERRCODE_IO_BROKENPACKAGE) + if (nWarn != ERRCODE_NONE) { if (xStatusIndicator.is()) xStatusIndicator->end(); @@ -435,6 +435,9 @@ ErrCode SmMLImportWrapper::ReadThroughComponentIS( else { SAL_WARN("starmath", "Filter failed on file input"); + // However this can not be included since it's not public + if (pXMlImport == nullptr) + return ERRCODE_NONE; return ERRCODE_SFX_DOLOADFAILED; } }