Kaydet (Commit) 9eaf9877 authored tarafından Miklos Vajna's avatar Miklos Vajna

DOCX export: check for AutoFmt which id before trying to access it

Change-Id: If30f1df55e426b32fd7ef1278fe5b1cf77823f87
üst e06907af
...@@ -326,7 +326,7 @@ bool lcl_checkFrameBtlr(SwNode* pStartNode, sax_fastparser::FastAttributeList* p ...@@ -326,7 +326,7 @@ bool lcl_checkFrameBtlr(SwNode* pStartNode, sax_fastparser::FastAttributeList* p
SwTxtAttr* pTxtAttr = pTxtNode->GetSwpHints().GetStart(0); SwTxtAttr* pTxtAttr = pTxtNode->GetSwpHints().GetStart(0);
if (!pTxtAttr) if (!pTxtAttr || pTxtAttr->Which() != RES_TXTATR_AUTOFMT)
return false; return false;
boost::shared_ptr<SfxItemSet> pItemSet = pTxtAttr->GetAutoFmt().GetStyleHandle(); boost::shared_ptr<SfxItemSet> pItemSet = pTxtAttr->GetAutoFmt().GetStyleHandle();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment