diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-01-12 13:05:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-13 08:03:48 +0000 |
commit | 151aba28ba46d6f0aae6ac69b70144e713d466e1 (patch) | |
tree | f9718fa1b14f8fbfcb0d278a9375edc9710224be | |
parent | e9dc7651451c5cff74a2409984514109338ee758 (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/21420
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
-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 |