[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Jun 23 08:25:38 PDT 2011


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

New commits:
commit 145e3d196f9b86de32a9095811433fd941aace50
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
    (cherry picked from commit 70d01893e713fa730acd73a28fbf5ee29651215c)

diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index c7a79a1..10c4a5b 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