Commit 807eace0 authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent cfdc8c90
......@@ -439,6 +439,8 @@ void docx_serialize_wps(std::wostream & strm, _docx_drawing & val)
{
std::wstring relativeFrom = L"margin";
if (val.styleHorizontalRel) relativeFrom =val.styleHorizontalRel->get_type_str();
if (relativeFrom == L"column") relativeFrom = L"margin";
CP_XML_ATTR(L"relativeFrom", relativeFrom);
......@@ -494,6 +496,8 @@ void docx_serialize_wps(std::wostream & strm, _docx_drawing & val)
{
std::wstring relativeFrom = L"margin";
if (val.styleHorizontalRel) relativeFrom =val.styleHorizontalRel->get_type_str();
if (relativeFrom == L"column") relativeFrom = L"margin";
CP_XML_NODE(L"wp14:sizeRelH")
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment