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

ofz#4794 Null-dereference

Change-Id: I2fc9f5ca60c2a476c031befd0253b1829538230d
üst f03ad9ee
......@@ -3926,13 +3926,18 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions,
{
const SwEndNode *pEndNd = pStNd->EndOfSectionNode();
SwContentNode *pCNd = m_xDoc->GetNodes()[pEndNd->GetIndex()-1] ->GetContentNode();
//Added defaults to CJK and CTL
SvxFontHeightItem aFontHeight( 40, 100, RES_CHRATR_FONTSIZE );
pCNd->SetAttr( aFontHeight );
SvxFontHeightItem aFontHeightCJK( 40, 100, RES_CHRATR_CJK_FONTSIZE );
pCNd->SetAttr( aFontHeightCJK );
SvxFontHeightItem aFontHeightCTL( 40, 100, RES_CHRATR_CTL_FONTSIZE );
pCNd->SetAttr( aFontHeightCTL );
if (!pCNd)
eState = SvParserState::Error;
else
{
//Added defaults to CJK and CTL
SvxFontHeightItem aFontHeight( 40, 100, RES_CHRATR_FONTSIZE );
pCNd->SetAttr( aFontHeight );
SvxFontHeightItem aFontHeightCJK( 40, 100, RES_CHRATR_CJK_FONTSIZE );
pCNd->SetAttr( aFontHeightCJK );
SvxFontHeightItem aFontHeightCTL( 40, 100, RES_CHRATR_CTL_FONTSIZE );
pCNd->SetAttr( aFontHeightCTL );
}
}
xSaveStruct->AddContents( new HTMLTableCnts(pStNd) );
......
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