[Libreoffice-commits] .: sw/source

Tor Lillqvist tml at kemper.freedesktop.org
Thu Jun 9 02:04:03 PDT 2011


 sw/source/core/text/EnhancedPDFExportHelper.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ddb616ebaa1564b9c7d189b603ce7d49f9a5e712
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Thu Jun 9 12:00:57 2011 +0300

    Add iterator sanity check, seems to fix fdo#36820

diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 05152db..d1485d9 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;
             }
         }
     }


More information about the Libreoffice-commits mailing list