mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
initialize tint, probably fixes the intermitten error
This commit is contained in:
parent
ff401a0843
commit
f21d4c922c
|
@ -89,7 +89,8 @@ color::color()
|
|||
: type_(type::auto_),
|
||||
rgb_(rgb_color(0, 0, 0, 0)),
|
||||
indexed_(0),
|
||||
theme_(0)
|
||||
theme_(0),
|
||||
tint_(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -97,7 +98,8 @@ color::color(const rgb_color &rgb)
|
|||
: type_(type::rgb),
|
||||
rgb_(rgb),
|
||||
indexed_(0),
|
||||
theme_(0)
|
||||
theme_(0),
|
||||
tint_(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -105,7 +107,8 @@ color::color(const indexed_color &indexed)
|
|||
: type_(type::indexed),
|
||||
rgb_(rgb_color(0, 0, 0, 0)),
|
||||
indexed_(indexed),
|
||||
theme_(0)
|
||||
theme_(0),
|
||||
tint_(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -113,7 +116,8 @@ color::color(const theme_color &theme)
|
|||
: type_(type::theme),
|
||||
rgb_(rgb_color(0, 0, 0, 0)),
|
||||
indexed_(0),
|
||||
theme_(theme)
|
||||
theme_(theme),
|
||||
tint_(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
style_serializer.write_stylesheet(observed);
|
||||
pugi::xml_document expected;
|
||||
expected.load(expected_string.c_str());
|
||||
observed.save(std::cout);
|
||||
|
||||
auto comparison = xml_helper::compare_xml(expected.root(), observed.root());
|
||||
return (bool)comparison;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user