diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-09 12:00:57 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-09 12:01:22 +0300 |
commit | ddb616ebaa1564b9c7d189b603ce7d49f9a5e712 (patch) | |
tree | 60170e9acc5f412d9914950aa5469216e9892774 | |
parent | 0bcdd6e4ea40a57aa2a6370a88298354a54a09a7 (diff) |
Add iterator sanity check, seems to fix fdo#36820
-rw-r--r-- | sw/source/core/text/EnhancedPDFExportHelper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx index 05152db6a6..d1485d924e 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; } } } |