summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-11-11 09:02:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-11-11 09:02:38 +0100
commitf289cf086d24bbc4d3f164c42f58cb492a5b2506 (patch)
tree7309aba475b90ddc27b1d3f160ff8448dda96520 /sw
parentNo accessible system libxslt for iOS (diff)
downloadcore-f289cf086d24bbc4d3f164c42f58cb492a5b2506.tar.gz
core-f289cf086d24bbc4d3f164c42f58cb492a5b2506.zip
Do not use front of empty vector.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/types.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/types.hxx b/sw/source/filter/ww8/types.hxx
index 012b87b21dfd..6efb2e77c0aa 100644
--- a/sw/source/filter/ww8/types.hxx
+++ b/sw/source/filter/ww8/types.hxx
@@ -36,7 +36,7 @@ namespace ww
class bytes : public std::vector<sal_uInt8>
{
public:
- const sal_uInt8* data() const { return &front(); }
+ const sal_uInt8* data() const { return empty() ? 0 : &front(); }
};
enum WordVersion {eWW2 = 2, eWW6 = 6, eWW7 = 7, eWW8 = 8};