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