diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2018-10-28 19:55:47 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2018-10-28 19:55:47 +0100 |
commit | 5fe12d600adc3e2ddfe80ac7acfd1c12ba945605 (patch) | |
tree | 6a4f47f0479cc7337b4ebc473573d9ff60b680ea /sw/source/core/unocore/unosett.cxx | |
parent | be8883bcb250bdbfbb77a76b244d97a30a97d77a (diff) |
Change-Id: Ief5a8074882666e6f2ac9a250f0be39894ac6c10
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 ) { |