From cbb2eb83d132d16aa2a6df2bc249712795e826ec Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Thu, 2 Mar 2017 12:10:06 +0000 Subject: [PATCH] Tabular counters: fix dangling reference to color_output_. --- src/console_reporter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/console_reporter.cc b/src/console_reporter.cc index da36a0ca..2df37af7 100644 --- a/src/console_reporter.cc +++ b/src/console_reporter.cc @@ -41,11 +41,11 @@ bool ConsoleReporter::ReportContext(const Context& context) { PrintBasicContext(&GetErrorStream(), context); #ifdef BENCHMARK_OS_WINDOWS - if (color_output_ && &std::cout != &GetOutputStream()) { + if ((output_options_ & OO_Color) && &std::cout != &GetOutputStream()) { GetErrorStream() << "Color printing is only supported for stdout on windows." " Disabling color printing\n"; - color_output_ = false; + output_options_ &= ~OO_Color; } #endif