From 47b5586d45556030e8e12d2d4540f7a7f1801b8b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 16 Oct 2010 10:37:20 -0400 Subject: [PATCH] Bug - Fixed underlining in undo command when color is off - the dashes were not being used. --- src/TDB.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/TDB.cpp b/src/TDB.cpp index 600189e18..bef44d1be 100644 --- a/src/TDB.cpp +++ b/src/TDB.cpp @@ -773,8 +773,16 @@ void TDB::undo () table.addColumn (" "); table.addColumn ("Prior Values"); table.addColumn ("Current Values"); - table.setColumnUnderline (1); - table.setColumnUnderline (2); + + if ((context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) && + context.config.getBoolean ("fontunderline")) + { + table.setColumnUnderline (1); + table.setColumnUnderline (2); + } + else + table.setTableDashedUnderline (); + table.setColumnWidth (0, Table::minimum); table.setColumnWidth (1, Table::flexible); table.setColumnWidth (2, Table::flexible);