sw/source/core/txtnode/ndtxt.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 066599203ce143b3614e0fa298a05ed28ba2ca63 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Jun 10 12:15:33 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Jun 11 13:17:55 2021 +0200 no need to make a copy here Change-Id: I47d51d3d372403f30ab38697037cdb205839df44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117030 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits