summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/ndtxt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/txtnode/ndtxt.cxx')
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 42abd0f81130..cb3a7d9830b2 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -4021,9 +4021,9 @@ void SwTextNode::SetAttrOutlineLevel(int nLevel)
void SwTextNode::GetAttrOutlineContentVisible(bool& bOutlineContentVisibleAttr)
{
- SfxGrabBagItem aGrabBagItem(dynamic_cast<const SfxGrabBagItem&>(GetAttr(RES_PARATR_GRABBAG)));
- auto it = aGrabBagItem.GetGrabBag().find("OutlineContentVisibleAttr");
- if (it != aGrabBagItem.GetGrabBag().end())
+ const SfxGrabBagItem & rGrabBagItem = dynamic_cast<const SfxGrabBagItem&>(GetAttr(RES_PARATR_GRABBAG));
+ auto it = rGrabBagItem.GetGrabBag().find("OutlineContentVisibleAttr");
+ if (it != rGrabBagItem.GetGrabBag().end())
it->second >>= bOutlineContentVisibleAttr;
}