mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
@ -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());
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user