summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-23 17:12:26 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-23 17:15:26 +0200
commit649830ed1c205135aef10f084b2ff32963adb7af (patch)
treefd2baf21aefbd06a356263ee808bb05e1c56cad3
parent5f3bd179cda5497e6dbb965c2bc10adb127b3cdf (diff)
fix for fdo#38593: don't call vector::back on an empty vector
-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 b75d1f6db4f6..f91dc75687fa 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;
}