Kaydet (Commit) 775fd7f6 authored tarafından Caolán McNamara's avatar Caolán McNamara

check for TableBox without StartNode

Change-Id: I77b21c85716083029ab8873094621e0f8eceb48f
üst 0c0228c4
......@@ -3597,18 +3597,22 @@ void DocxAttributeOutput::TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer
else if ( FRMDIR_HORI_LEFT_TOP == m_rExport.TrueFrameDirection( *pFrmFmt ) )
{
// Undo the text direction mangling done by the btLr handler in writerfilter::dmapper::DomainMapperTableManager::sprm()
SwPaM aPam(*pTabBox->GetSttNd(), 0);
++aPam.GetPoint()->nNode;
if (aPam.GetPoint()->nNode.GetNode().IsTxtNode())
const SwStartNode* pSttNd = pTabBox->GetSttNd();
if (pSttNd)
{
const SwTxtNode& rTxtNode = static_cast<const SwTxtNode&>(aPam.GetPoint()->nNode.GetNode());
if( const SwAttrSet* pAttrSet = rTxtNode.GetpSwAttrSet())
SwPaM aPam(*pSttNd, 0);
++aPam.GetPoint()->nNode;
if (aPam.GetPoint()->nNode.GetNode().IsTxtNode())
{
const SvxCharRotateItem& rCharRotate = pAttrSet->GetCharRotate();
if (rCharRotate.GetValue() == 900)
const SwTxtNode& rTxtNode = static_cast<const SwTxtNode&>(aPam.GetPoint()->nNode.GetNode());
if( const SwAttrSet* pAttrSet = rTxtNode.GetpSwAttrSet())
{
m_pSerializer->singleElementNS( XML_w, XML_textDirection, FSNS( XML_w, XML_val ), "btLr", FSEND );
m_bBtLr = true;
const SvxCharRotateItem& rCharRotate = pAttrSet->GetCharRotate();
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