diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-23 17:12:26 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-23 17:15:26 +0200 |
commit | 70d01893e713fa730acd73a28fbf5ee29651215c (patch) | |
tree | 45e7d42110d36b4232796bb701f07f2c27e18e99 | |
parent | 89462758bfcaaec34c508f2afe08eacb759c7093 (diff) |
fix for fdo#38593: don't call vector::back on an empty vector
-rw-r--r-- | sc/source/filter/html/htmlpars.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index b75d1f6db..f91dc7568 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; } |