summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-23 17:12:26 +0200
committerCaolán McNamara <caolanm@redhat.com>2011-06-23 16:25:32 +0100
commit145e3d196f9b86de32a9095811433fd941aace50 (patch)
tree5a57bab0c555905433c3982e9ea25e921630fd6a
parentbdbd2f7c727d909550839d3d88cc2ca7e089d151 (diff)
fix for fdo#38593: don't call vector::back on an empty vector
(cherry picked from commit 70d01893e713fa730acd73a28fbf5ee29651215c)
-rw-r--r--sc/source/filter/html/htmlpars.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index c7a79a164..10c4a5b83 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;
}