summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-07-13 12:03:33 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-07-27 17:41:31 +0200
commitb8b044af4dd414a1c65b857ce953e5e992e67826 (patch)
treede6b1e18e722f7c6ea01a52d7122d33ef06015b4 /writerfilter/source/dmapper/DomainMapperTableHandler.cxx
parent7c09daf4efc2eadc41cf3aa4822958b6bb1725a7 (diff)
avoid iterator retreating before the start of an empty list
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapperTableHandler.cxx')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableHandler.cxx2
1 files changed, 1 insertions, 1 deletions
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;