fix/bug79610

fix bug #79610
This commit is contained in:
Timofey Derevyankin
2026-02-06 17:33:50 +03:00
parent 2024302fbe
commit f7555af6b3
2 changed files with 7 additions and 3 deletions

View File

@ -513,12 +513,16 @@ void docx_serialize_wps(std::wostream & strm, _docx_drawing & val)
{
CP_XML_NODE(L"wp:extent")
{
if (val.cx > 0 || val.cy > 0)
if (val.cx > 0 && val.cy > 0)
{
CP_XML_ATTR(L"cx", val.cx);
CP_XML_ATTR(L"cy", val.cy);
}
else
{
CP_XML_ATTR(L"cx", 180000);
CP_XML_ATTR(L"cy", 180000);
}
}
serialize_null_extent(CP_XML_STREAM());
}

View File

@ -437,7 +437,7 @@ void paragraph::docx_convert(oox::docx_conversion_context & Context, _CP_OPT(std
}
else
{
content_[i]->docx_convert(Context);
content_[i]->docx_convert(Context);
if (Context.get_drop_cap_context().state() > 0)
Context.get_drop_cap_context().state(0);//disable