summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2007-05-07 05:19:52 +0000
committerOliver Specht <os@openoffice.org>2007-05-07 05:19:52 +0000
commitb8cee3b1ba4d86736c82308bfafe531f6381f232 (patch)
treed6105f861a3c43a4540fb70dac9c8b97dea18009 /writerfilter/source/dmapper/DomainMapperTableHandler.cxx
parent4a259fb9b4793486c9e46056c413e3657e28838f (diff)
check iterators before call of erase()
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapperTableHandler.cxx')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableHandler.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
index 0552f29e9871..0a5e53b5329c 100644
--- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: DomainMapperTableHandler.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: os $ $Date: 2007-05-03 06:25:37 $
+ * last change: $Author: os $ $Date: 2007-05-07 06:19:52 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -136,8 +136,10 @@ void DomainMapperTableHandler::endTable()
aCellIterator->get()->find( rPropSupplier.GetName(PROP_RIGHT_BORDER) );
const PropertyMap::const_iterator aBottomIter =
aCellIterator->get()->find( rPropSupplier.GetName(PROP_BOTTOM_BORDER) );
- aCellIterator->get()->erase( aVerticalIter );
- aCellIterator->get()->erase( aHorizontalIter );
+ if( aVerticalIter != aCellIterator->get()->end())
+ aCellIterator->get()->erase( aVerticalIter );
+ if( aHorizontalIter != aCellIterator->get()->end())
+ aCellIterator->get()->erase( aHorizontalIter );
pSingleCellProperties[nCell] = aCellIterator->get()->GetPropertyValues();
}