diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-01-12 13:05:56 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-13 11:19:01 +0000 |
commit | 9a4f133bc8b00ea2051e6979087b46fd0401e60f (patch) | |
tree | e9aeb34dd3756f5f00b9c01cd8da080a98310de1 /sw | |
parent | 3c11617d80ec1cadc150626a2da357f438f0928c (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.cxx | 2 |
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 |