set fill background to indexed_color(64) when the foreground is set

This commit is contained in:
Thomas Fussell 2016-10-29 12:41:55 -04:00
parent 0f7dc72070
commit 85ffb2029c

View File

@ -52,6 +52,12 @@ optional<color> pattern_fill::foreground() const
pattern_fill &pattern_fill::foreground(const color &new_foreground)
{
foreground_ = new_foreground;
if (!background_)
{
background_.set(indexed_color(64));
}
return *this;
}