From a65a32fd8acf76f1bcd96113ca6866f53d9543e1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 21 Jul 2019 17:25:23 +0100 Subject: ofz#15997 Timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7d57e2286dd6a1c2d38479c41048e3a4801a66f2 Reviewed-on: https://gerrit.libreoffice.org/76073 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- editeng/source/editeng/impedit4.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editeng/source/editeng/impedit4.cxx') diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 75abcf0448b6..12a2e522e9d9 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -1041,6 +1041,7 @@ std::unique_ptr ImpEditEngine::CreateTextObject( EditSelection a // The Text... pC->SetText(pNode->Copy(nStartPos, nEndPos-nStartPos)); + auto& rCAttriblist = pC->GetCharAttribs(); // and the Attribute... sal_uInt16 nAttr = 0; @@ -1068,7 +1069,7 @@ std::unique_ptr ImpEditEngine::CreateTextObject( EditSelection a if ( !pX->GetLen() && !bEmptyPara ) pTxtObj->mpImpl->DestroyAttrib(std::move(pX)); else - pC->GetCharAttribs().push_back(std::move(pX)); + rCAttriblist.push_back(std::move(pX)); } nAttr++; pAttr = GetAttrib( pNode->GetCharAttribs().GetAttribs(), nAttr ); -- cgit v1.2.3