diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-01-12 13:05:56 +0100 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2016-01-13 06:56:18 +0000 |
commit | 70d2673ba06878ee84c99d7877e4b71749ac06f0 (patch) | |
tree | 14a0b9dd8de3260ba0a0fa34a2086e6f38ba71b4 /sw | |
parent | 8bd9eb833444810dec3debd0215bd26dffc2fb91 (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/21394
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
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 d9efba02ca9b..d80142b303bb 100644 --- a/sw/source/core/undo/untbl.cxx +++ b/sw/source/core/undo/untbl.cxx @@ -1093,7 +1093,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 |