diff options
Diffstat (limited to 'sw/source/core/unocore/unosett.cxx')
-rw-r--r-- | sw/source/core/unocore/unosett.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx index 2e0a8fbc131b..16f336481a57 100644 --- a/sw/source/core/unocore/unosett.cxx +++ b/sw/source/core/unocore/unosett.cxx @@ -498,8 +498,8 @@ uno::Any SwXFootnoteProperties::getPropertyValue(const OUString& rPropertyName) } else { - if( rFootnoteInfo.GetCharFormatDep()->GetRegisteredIn() ) - pCharFormat = rFootnoteInfo.GetCharFormat(*pDoc); + if( SwCharFormat* pFormat = rFootnoteInfo.GetCharFormat(*pDoc) ) + pCharFormat = pFormat; } if( pCharFormat ) { @@ -721,8 +721,8 @@ uno::Any SwXEndnoteProperties::getPropertyValue(const OUString& rPropertyName) } else { - if( rEndInfo.GetCharFormatDep()->GetRegisteredIn() ) - pCharFormat = rEndInfo.GetCharFormat(*pDoc); + if( auto pFormat = rEndInfo.GetCharFormat(*pDoc) ) + pCharFormat = pFormat; } if( pCharFormat ) { |