sw/source/core/layout/frmtool.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ffb5ebb06b5afff8d47943312ecd8a048dbcaf5e
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu Sep 14 14:19:27 2023 +0200
Commit:     Michael Stahl <[email protected]>
CommitDate: Thu Sep 14 18:06:16 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 <[email protected]>
        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 <[email protected]>
    Tested-by: Jenkins
    (cherry picked from commit e2a0530a26b5c5b5f48d3e3c695b839d0e5c0164)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156887

diff --git a/sw/source/core/layout/frmtool.cxx 
b/sw/source/core/layout/frmtool.cxx
index 8beb02663d92..f3de2a7e201e 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1404,7 +1404,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)

Reply via email to