mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
fix bug #74435
This commit is contained in:
@ -969,21 +969,18 @@ bool OOXRunReader::Parse( ReaderParameter oParam , RtfParagraph& oOutputParagrap
|
||||
}break;
|
||||
case OOX::et_mc_alternateContent:
|
||||
{
|
||||
bool res = false;
|
||||
OOX::Logic::CAlternateContent *ooxAlt = dynamic_cast<OOX::Logic::CAlternateContent* >(ooxItem);
|
||||
if (!ooxAlt->m_arrChoiceItems.empty())
|
||||
|
||||
for (size_t i = 0; res == false && i < ooxAlt->m_arrFallbackItems.size(); i++)
|
||||
{
|
||||
for (size_t i = 0; i < ooxAlt->m_arrChoiceItems.size(); i++)
|
||||
{
|
||||
Parse(oParam , oOutputParagraph, poStyle, oNewProperty, ooxAlt->m_arrChoiceItems[i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
res = Parse(oParam, oOutputParagraph, poStyle, oNewProperty, ooxAlt->m_arrFallbackItems[i]);
|
||||
}
|
||||
for (size_t i = 0; res == false && i < ooxAlt->m_arrChoiceItems.size(); i++)
|
||||
{
|
||||
for (size_t i = 0; i < ooxAlt->m_arrFallbackItems.size(); i++)
|
||||
{
|
||||
Parse(oParam , oOutputParagraph, poStyle, oNewProperty, ooxAlt->m_arrFallbackItems[i]);
|
||||
}
|
||||
res = Parse(oParam, oOutputParagraph, poStyle, oNewProperty, ooxAlt->m_arrChoiceItems[i]);
|
||||
}
|
||||
|
||||
}break;
|
||||
case OOX::et_w_sym:
|
||||
{
|
||||
|
||||
@ -1262,11 +1262,11 @@ bool OOXShapeReader::ParseShape( ReaderParameter oParam, RtfShapePtr& pOutput)
|
||||
if ((oox_sp_style) && (oox_sp_style->fontRef.idx.IsInit()))
|
||||
{
|
||||
std::wstring font_name;
|
||||
if (oox_sp_style->fontRef.idx->GetBYTECode() == 0)
|
||||
if (oParam.oDocx->m_pTheme && oox_sp_style->fontRef.idx->GetBYTECode() == 0)
|
||||
{
|
||||
font_name = oParam.oDocx->m_pTheme->themeElements.fontScheme.majorFont.latin.typeface;
|
||||
}
|
||||
else if (oox_sp_style->fontRef.idx->GetBYTECode() == 1)
|
||||
else if (oParam.oDocx->m_pTheme && oox_sp_style->fontRef.idx->GetBYTECode() == 1)
|
||||
{
|
||||
font_name = oParam.oDocx->m_pTheme->themeElements.fontScheme.minorFont.latin.typeface;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user