summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/XMLFontAutoStylePool.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLFontAutoStylePool.cxx b/xmloff/source/style/XMLFontAutoStylePool.cxx
index 0fbb57b78ec8..e86709b6cc3d 100644
--- a/xmloff/source/style/XMLFontAutoStylePool.cxx
+++ b/xmloff/source/style/XMLFontAutoStylePool.cxx
@@ -328,9 +328,9 @@ std::unordered_set<OUString> XMLFontAutoStylePool::getUsedFontList()
if (xStyle->isInUse())
{
uno::Reference<beans::XPropertySet> xPropertySet(xStyle, UNO_QUERY);
- if (xPropertySet.is())
+ uno::Reference<beans::XPropertySetInfo> xInfo(xPropertySet ? xPropertySet->getPropertySetInfo() : nullptr);
+ if (xInfo)
{
- uno::Reference<beans::XPropertySetInfo> xInfo(xPropertySet->getPropertySetInfo());
if (m_bEmbedLatinScript && xInfo->hasPropertyByName("CharFontName"))
{
OUString sCharFontName;