summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unosett.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unosett.cxx')
-rw-r--r--sw/source/core/unocore/unosett.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx
index 8841f50de1db..c8490c4bf974 100644
--- a/sw/source/core/unocore/unosett.cxx
+++ b/sw/source/core/unocore/unosett.cxx
@@ -492,13 +492,11 @@ uno::Any SwXFootnoteProperties::getPropertyValue(const OUString& rPropertyName)
const SwCharFormat* pCharFormat = nullptr;
if( pEntry->nWID == WID_ANCHOR_CHARACTER_STYLE )
{
- if( rFootnoteInfo.GetAnchorCharFormatDep()->GetRegisteredIn() )
- pCharFormat = rFootnoteInfo.GetAnchorCharFormat(*pDoc);
+ pCharFormat = rFootnoteInfo.GetAnchorCharFormat(*pDoc);
}
else
{
- if( rFootnoteInfo.GetCharFormatDep()->GetRegisteredIn() )
- pCharFormat = rFootnoteInfo.GetCharFormat(*pDoc);
+ pCharFormat = rFootnoteInfo.GetCharFormat(*pDoc);
}
if( pCharFormat )
{
@@ -715,13 +713,11 @@ uno::Any SwXEndnoteProperties::getPropertyValue(const OUString& rPropertyName)
const SwCharFormat* pCharFormat = nullptr;
if( pEntry->nWID == WID_ANCHOR_CHARACTER_STYLE )
{
- if( rEndInfo.GetAnchorCharFormatDep()->GetRegisteredIn() )
- pCharFormat = rEndInfo.GetAnchorCharFormat(*pDoc);
+ pCharFormat = rEndInfo.GetAnchorCharFormat(*pDoc);
}
else
{
- if( rEndInfo.GetCharFormatDep()->GetRegisteredIn() )
- pCharFormat = rEndInfo.GetCharFormat(*pDoc);
+ pCharFormat = rEndInfo.GetCharFormat(*pDoc);
}
if( pCharFormat )
{