Kaydet (Commit) c7ae5af3 authored tarafından Luboš Luňák's avatar Luboš Luňák

fix NULL dereference

Only the Clang tinderbox fails here for some reason, but e.g. code
in ww8par5.cxx check for non-NULL too, so it's apparently possible.

Change-Id: I985445f7727560116813aacbca40c0e7c0a4863f
üst ed316fc6
...@@ -2006,12 +2006,14 @@ void DocxAttributeOutput::TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer ...@@ -2006,12 +2006,14 @@ void DocxAttributeOutput::TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer
if (aPam.GetPoint()->nNode.GetNode().IsTxtNode()) if (aPam.GetPoint()->nNode.GetNode().IsTxtNode())
{ {
const SwTxtNode& rTxtNode = (const SwTxtNode&)aPam.GetPoint()->nNode.GetNode(); const SwTxtNode& rTxtNode = (const SwTxtNode&)aPam.GetPoint()->nNode.GetNode();
const SwAttrSet* pAttrSet = rTxtNode.GetpSwAttrSet(); if( const SwAttrSet* pAttrSet = rTxtNode.GetpSwAttrSet())
const SvxCharRotateItem& rCharRotate = pAttrSet->GetCharRotate();
if (rCharRotate.GetValue() == 900)
{ {
m_pSerializer->singleElementNS( XML_w, XML_textDirection, FSNS( XML_w, XML_val ), "btLr", FSEND ); const SvxCharRotateItem& rCharRotate = pAttrSet->GetCharRotate();
m_bBtLr = true; if (rCharRotate.GetValue() == 900)
{
m_pSerializer->singleElementNS( XML_w, XML_textDirection, FSNS( XML_w, XML_val ), "btLr", FSEND );
m_bBtLr = true;
}
} }
} }
} }
......
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