From b8b044af4dd414a1c65b857ce953e5e992e67826 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 13 Jul 2011 12:03:33 +0200 Subject: avoid iterator retreating before the start of an empty list --- writerfilter/source/dmapper/DomainMapperTableHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'writerfilter/source/dmapper/DomainMapperTableHandler.cxx') diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx index 407b119e8a5f..c7750f894ceb 100644 --- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx @@ -504,7 +504,6 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl //aRowOfCellsIterator points to a vector of PropertyMapPtr PropertyMapVector1::const_iterator aCellIterator = aRowOfCellsIterator->begin(); PropertyMapVector1::const_iterator aCellIteratorEnd = aRowOfCellsIterator->end(); - PropertyMapVector1::const_iterator aLastCellIterator = aRowOfCellsIterator->end() - 1; // Get the row style properties sal_Int32 nRowStyleMask = sal_Int32( 0 ); @@ -531,6 +530,7 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl { PropertyMapPtr pAllCellProps( new PropertyMap ); + PropertyMapVector1::const_iterator aLastCellIterator = aRowOfCellsIterator->end() - 1; bool bIsEndCol = aCellIterator == aLastCellIterator; bool bIsEndRow = aRowOfCellsIterator == aLastRowIterator; -- cgit