[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Tue Jan 13 02:16:52 PST 2015


 sw/source/core/layout/fly.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2bd04e21a68d5c845d5b9124f20b58552ac5fea4
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jan 13 10:12:16 2015 +0000

    fix debug stl assert about unsorted range on loading ooo42586-1.sxw
    
    Change-Id: Ib97dc719c438aed96c2e24bd34fc38726b90f097

diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index 3743a33..b8b942b 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -2112,6 +2112,9 @@ void SwFrm::AppendDrawObj( SwAnchoredObject& _rNewObj )
             {
                 _rNewObj.DrawObj()->SetLayer(aControlLayerID);
             }
+            //The layer is part of the key used to sort the obj, so update
+            //its position if the layer changed.
+            mpDrawObjs->Update(_rNewObj);
         }
     }
 


More information about the Libreoffice-commits mailing list