From 85ffb2029ccabe49eafd358cc4223a65e79646f7 Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Sat, 29 Oct 2016 12:41:55 -0400 Subject: [PATCH] set fill background to indexed_color(64) when the foreground is set --- source/styles/fill.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/styles/fill.cpp b/source/styles/fill.cpp index 4c6a8595..02578140 100644 --- a/source/styles/fill.cpp +++ b/source/styles/fill.cpp @@ -52,6 +52,12 @@ optional 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; }