it's enough to set these as a default sprm

This commit is contained in:
Miklos Vajna 2011-08-11 10:14:27 +02:00
parent da8f7be84f
commit 8d4a0dbc11

View file

@ -1456,7 +1456,6 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
if (nParam >= 0)
{
RTFValue::Pointer_t pValue(new RTFValue(nParam));
lcl_putNestedSprm(m_aSettingsTableSprms, NS_ooxml::LN_CT_Settings_endnotePr, NS_ooxml::LN_CT_EdnProps_numFmt, pValue);
lcl_putNestedSprm(m_aDefaultState.aParagraphSprms, NS_ooxml::LN_EG_SectPrContents_endnotePr, NS_ooxml::LN_CT_EdnProps_numFmt, pValue);
return 0;
}
@ -2252,7 +2251,6 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
// Ignore this for now, later the RTF writer version could be used to add hacks for older buggy writers.
break;
case RTF_AFTNSTART:
lcl_putNestedSprm(m_aSettingsTableSprms, NS_ooxml::LN_CT_Settings_endnotePr, NS_ooxml::LN_EG_FtnEdnNumProps_numStart, pIntValue);
lcl_putNestedSprm(m_aDefaultState.aParagraphSprms, NS_ooxml::LN_EG_SectPrContents_endnotePr, NS_ooxml::LN_EG_FtnEdnNumProps_numStart, pIntValue);
break;
default: