mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
set fill background to indexed_color(64) when the foreground is set
This commit is contained in:
parent
0f7dc72070
commit
85ffb2029c
|
@ -52,6 +52,12 @@ optional<color> pattern_fill::foreground() const
|
||||||
pattern_fill &pattern_fill::foreground(const color &new_foreground)
|
pattern_fill &pattern_fill::foreground(const color &new_foreground)
|
||||||
{
|
{
|
||||||
foreground_ = new_foreground;
|
foreground_ = new_foreground;
|
||||||
|
|
||||||
|
if (!background_)
|
||||||
|
{
|
||||||
|
background_.set(indexed_color(64));
|
||||||
|
}
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user