writerfilter/source/dmapper/DomainMapperTableManager.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 37768ecc855e08fc2165cf4a6848ae0ae28ffab7 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Mar 1 10:39:34 2022 +0000 Commit: Mike Kaganski <[email protected]> CommitDate: Thu Mar 3 06:10:29 2022 +0100 fail more gracefully if m_aTmpPosition is empty LIBREOFFICE-N4LA0OHZ Change-Id: I7f863151f753ad5605c4f1f280cfd79aa4c6bce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130772 Tested-by: Jenkins Reviewed-by: Michael Stahl <[email protected]> (cherry picked from commit 02837024ea8d3d52c92420858327b309f2e96487) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130777 Reviewed-by: Christian Lohmaier <[email protected]> Reviewed-by: Xisco Fauli <[email protected]> Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Mike Kaganski <[email protected]> diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx index 6689a36091ad..583d668abad3 100644 --- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx @@ -555,6 +555,8 @@ void DomainMapperTableManager::endOfRowAction() // Compare the table position and style with the previous ones. We may need to split // into two tables if those are different. We surely don't want to do anything // if we don't have any row yet. + if (m_aTmpPosition.empty()) + throw std::out_of_range("row without a position"); TablePositionHandlerPtr pTmpPosition = m_aTmpPosition.back(); TablePropertyMapPtr pTablePropMap = m_aTmpTableProperties.back( ); TablePositionHandlerPtr pCurrentPosition = m_aTablePositions.back();
