[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Thu Jun 23 08:16:23 PDT 2011


 sc/source/filter/html/htmlpars.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 70d01893e713fa730acd73a28fbf5ee29651215c
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Thu Jun 23 17:12:26 2011 +0200

    fix for fdo#38593: don't call vector::back on an empty vector

diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index b75d1f6..f91dc75 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -1012,7 +1012,9 @@ void ScHTMLLayoutParser::TableOn( ImportInfo* pInfo )
             nColOffsetStart = nColOffset;
         }
 
-        ScEEParseEntry* pE = maList.back();
+        ScEEParseEntry* pE = NULL;
+        if (maList.size())
+            pE = maList.back();
         NewActEntry( pE );      // neuer freifliegender pActEntry
         xLockedList = new ScRangeList;
     }


More information about the Libreoffice-commits mailing list