diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-27 13:52:42 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-27 13:56:10 +0200 |
commit | 9eaf9877f38f3c9fea3d292015a875052f20d2ec (patch) | |
tree | 7ecb5152bd991ec2d3858ec137b3c336ec2963c9 | |
parent | e06907afab0c80557465cce64c2157f611e9f2b5 (diff) |
DOCX export: check for AutoFmt which id before trying to access it
Change-Id: If30f1df55e426b32fd7ef1278fe5b1cf77823f87
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 42d178aa633f..1eb94a147798 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -326,7 +326,7 @@ bool lcl_checkFrameBtlr(SwNode* pStartNode, sax_fastparser::FastAttributeList* p SwTxtAttr* pTxtAttr = pTxtNode->GetSwpHints().GetStart(0); - if (!pTxtAttr) + if (!pTxtAttr || pTxtAttr->Which() != RES_TXTATR_AUTOFMT) return false; boost::shared_ptr<SfxItemSet> pItemSet = pTxtAttr->GetAutoFmt().GetStyleHandle(); |