Compare commits

..

2 Commits

Author SHA1 Message Date
6ed0e13178 x2t version up 2017-05-03 11:09:07 +03:00
446e519110 . 2017-05-02 20:00:22 +03:00
3 changed files with 19 additions and 7 deletions

View File

@ -167,15 +167,23 @@ void oox_serialize_ln(std::wostream & strm, const std::vector<odf_reader::_prope
{
if (fill != L"a:noFill")
{
if (color.length() < 1 && always_draw) color = L"000000";
else if (color.length() <1 ) color = L"ffffff";
if ( color.empty() )
{
if (always_draw) color = L"000000";
else color = L"ffffff";
}
CP_XML_NODE(L"a:srgbClr")
{
CP_XML_ATTR(L"val",color);
if (dStrokeOpacity) CP_XML_NODE(L"a:alpha"){CP_XML_ATTR(L"val", *dStrokeOpacity);}
if (dStrokeOpacity)
{
CP_XML_NODE(L"a:alpha")
{
CP_XML_ATTR(L"val", (int)(*dStrokeOpacity * 1000));
}
}
}
}
}

View File

@ -463,9 +463,13 @@ void text_format_properties_content::drawing_serialize(std::wostream & strm, std
//nodes
if (fo_color_)
{
CP_XML_NODE(L"a:solidFill")
std::wstring strRGB = fo_color_->get_hex_value(); //auto ... не нужно
if (!strRGB.empty())
{
CP_XML_NODE(L"a:srgbClr") {CP_XML_ATTR(L"val",fo_color_->get_hex_value());}
CP_XML_NODE(L"a:solidFill")
{
CP_XML_NODE(L"a:srgbClr") {CP_XML_ATTR(L"val", strRGB);}
}
}
}
if (style_font_name_ || style_font_name_asian_ || style_font_name_complex_ || fo_font_family_)

View File

@ -7,7 +7,7 @@
QT -= core
QT -= gui
VERSION = 2.4.454.0
VERSION = 2.4.455.0
DEFINES += INTVER=$$VERSION
TARGET = x2t