From 12a90fb477950da0febe9bb00f8d65427a6079a5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 16 Oct 2010 11:06:28 -0400 Subject: [PATCH] Bug - Fixed underlining in color legend command when color is off - the dashes were not being used. --- src/command.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index ba5acbe5e..2c7752d7a 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -2107,12 +2107,14 @@ int handleColor (std::string &outs) table.addColumn ("Color"); table.addColumn ("Definition"); - if (context.config.getBoolean ("color") || - context.config.getBoolean ("_forcecolor")) + if ((context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) && + context.config.getBoolean ("fontunderline")) { table.setColumnUnderline (0); table.setColumnUnderline (1); } + else + table.setTableDashedUnderline (); foreach (item, all) {