[Libreoffice-commits] core.git: Branch 'libreoffice-5-1-0' - sw/source

Oliver Specht oliver.specht at cib.de
Wed Jan 13 00:04:13 PST 2016


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

New commits:
commit 151aba28ba46d6f0aae6ac69b70144e713d466e1
Author: Oliver Specht <oliver.specht at cib.de>
Date:   Tue Jan 12 13:05:56 2016 +0100

    tdf#96067: fix crash in undo of table row insertion
    
    create SwIterator with SwLayoutFrame instead of SwTabFrame
    the wrong usage worked with tools/rtti because of incomplete
    type information above of SwLayoutFrame
    
    Change-Id: I9967fa1b534fc28dc5e0cd1fa5b64179faa9b94d
    Reviewed-on: https://gerrit.libreoffice.org/21420
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index 116c686..2072eda 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -1094,7 +1094,7 @@ void _SaveTable::NewFrameFormat( const SwTableLine* pTableLn, const SwTableBox*
     }
 
     // first re-assign Frames
-    SwIterator<SwTabFrame,SwFormat> aIter( *pOldFormat );
+    SwIterator<SwLayoutFrame,SwFormat> aIter( *pOldFormat );
     for( SwFrame* pLast = aIter.First(); pLast; pLast = aIter.Next() )
     {
         if( pTableLn ? static_cast<SwRowFrame*>(pLast)->GetTabLine() == pTableLn


More information about the Libreoffice-commits mailing list