summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-09 12:00:57 +0300
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-06-09 15:57:08 +0200
commit47a0a2e765aa7f364e4dd373b2779cc4f20a17c6 (patch)
treeff0df0c0837d22fe519649761555192fe85d7aaa
parent0d3f3c3c45cadf06b7de2cc1592a59e6a44ebd60 (diff)
Add iterator sanity check, seems to fix fdo#36820
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 80905097de..880651e51e 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -381,7 +381,8 @@ bool SwTaggedPDFHelper::CheckReopenTag()
{
FrmTagIdMap& rFrmTagIdMap = SwEnhancedPDFExportHelper::GetFrmTagIdMap();
const FrmTagIdMap::const_iterator aIter = rFrmTagIdMap.find( pKey );
- nReopenTag = (*aIter).second;
+ if ( aIterm != rFrmTagIdMap.end() )
+ nReopenTag = (*aIter).second;
}
}
}