summaryrefslogtreecommitdiffstats
path: root/sw/source/core/txtnode/atrref.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/txtnode/atrref.cxx')
-rw-r--r--sw/source/core/txtnode/atrref.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/atrref.cxx b/sw/source/core/txtnode/atrref.cxx
index 6a3e31fab130..208c04ac2757 100644
--- a/sw/source/core/txtnode/atrref.cxx
+++ b/sw/source/core/txtnode/atrref.cxx
@@ -46,6 +46,7 @@ SwFormatRefMark::SwFormatRefMark( OUString aName )
, m_pTextAttr(nullptr)
, m_aRefName(std::move(aName))
{
+ setNonShareable();
}
SwFormatRefMark::SwFormatRefMark( const SwFormatRefMark& rAttr )
@@ -54,6 +55,7 @@ SwFormatRefMark::SwFormatRefMark( const SwFormatRefMark& rAttr )
, m_pTextAttr(nullptr)
, m_aRefName(rAttr.m_aRefName)
{
+ setNonShareable();
}
void SwFormatRefMark::SetXRefMark(rtl::Reference<SwXReferenceMark> const& xMark)