sw/source/core/layout/frmtool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e2a0530a26b5c5b5f48d3e3c695b839d0e5c0164 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Sep 14 14:19:27 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Thu Sep 14 15:26:30 2023 +0200 fix use of reference where we may end up with a reference to a different element of the queue than we want. regression from commit 31e66bd07c1082bb375be8aaf7835f019351d9bb Author: Michael Stahl <michael.st...@cib.de> Date: Mon Aug 6 19:03:22 2018 +0200 sw: fix ignored frames in AppendAllObjs() Change-Id: I94801df84b4b130315f67292851fbd129b2fe7d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156919 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Tested-by: Jenkins diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index afe119c65e16..f7bfd409322a 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1411,7 +1411,7 @@ void AppendAllObjs(const sw::FrameFormats<sw::SpzFrameFormat*>* pTable, const Sw const SwFrameFormat* pFirstRequeued(nullptr); while(!vFormatsToConnect.empty()) { - auto& pFormat = vFormatsToConnect.front(); + SwFrameFormat* pFormat = vFormatsToConnect.front(); bool isConnected(false); pFormat->CallSwClientNotify(sw::GetObjectConnectedHint(isConnected, pRoot)); if(!isConnected)