mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fixed unnecessary strikethrough in hwp conversion
This commit is contained in:
@ -243,7 +243,7 @@ CRunnerStyle CStyleConverter::GenerateRunnerStyle(const CHWPRecordCharShape& oCh
|
|||||||
if (oCharShape.Italic())
|
if (oCharShape.Italic())
|
||||||
oRunnerStyle.SetItalic(true);
|
oRunnerStyle.SetItalic(true);
|
||||||
|
|
||||||
if (oCharShape.StrikeOut())
|
if (oCharShape.StrikeOut() && ELineStyle2::NONE != oCharShape.GetStrikeOutType())
|
||||||
oRunnerStyle.SetStrike(EStrikeType::Single);
|
oRunnerStyle.SetStrike(EStrikeType::Single);
|
||||||
|
|
||||||
if (oCharShape.SuperScript())
|
if (oCharShape.SuperScript())
|
||||||
@ -284,7 +284,7 @@ CRunnerStyle CStyleConverter::GenerateRunnerStyle(const CHWPRecordCharShape& oCh
|
|||||||
case ELineStyle1::SOLID_3D_REVERS_LI: oRunnerStyle.SetU({EUType::Thick, oCharShape.GetUnderlineColor()}); break;
|
case ELineStyle1::SOLID_3D_REVERS_LI: oRunnerStyle.SetU({EUType::Thick, oCharShape.GetUnderlineColor()}); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (EUnderline::CENTER == eUnderlineType)
|
else if (EUnderline::CENTER == eUnderlineType && !oCharShape.StrikeOut())
|
||||||
{
|
{
|
||||||
if (eUnderlineStyle == ELineStyle1::DOUBLE_SLIM ||
|
if (eUnderlineStyle == ELineStyle1::DOUBLE_SLIM ||
|
||||||
eUnderlineStyle == ELineStyle1::DOUBLE_WAVE)
|
eUnderlineStyle == ELineStyle1::DOUBLE_WAVE)
|
||||||
|
|||||||
@ -310,7 +310,7 @@ bool CHWPRecordCharShape::Underline() const
|
|||||||
|
|
||||||
bool CHWPRecordCharShape::StrikeOut() const
|
bool CHWPRecordCharShape::StrikeOut() const
|
||||||
{
|
{
|
||||||
return ELineStyle2::NONE != m_eStrikeOutShape;
|
return 0x01 == m_chStrikeOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CHWPRecordCharShape::SuperScript() const
|
bool CHWPRecordCharShape::SuperScript() const
|
||||||
|
|||||||
Reference in New Issue
Block a user