summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2016-01-12 13:05:56 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-13 11:19:01 +0000
commit9a4f133bc8b00ea2051e6979087b46fd0401e60f (patch)
treee9aeb34dd3756f5f00b9c01cd8da080a98310de1 /sw
parent3c11617d80ec1cadc150626a2da357f438f0928c (diff)
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/21419 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/untbl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index 116c68696907..2072edaa456b 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