From 668fd2301e6201407e7a5d22826352fab02a9543 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 31 Oct 2015 15:44:05 -0400 Subject: [PATCH] ColParent: Now uses ::renderStringLeft --- src/columns/ColParent.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/columns/ColParent.cpp b/src/columns/ColParent.cpp index 2cd167cda..a10e24570 100644 --- a/src/columns/ColParent.cpp +++ b/src/columns/ColParent.cpp @@ -37,7 +37,6 @@ extern Context context; ColumnParent::ColumnParent () { _name = "parent"; - _type = "string"; _style = "long"; _label = STRING_COLUMN_LABEL_PARENT; _modifiable = false; @@ -76,19 +75,11 @@ void ColumnParent::render ( { // f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default // 34f00694 short - if (_style == "default" || - _style == "long") - { - lines.push_back (color.colorize (leftJustify (task.get (_name), width))); - } + if (_style == "default" || _style == "long") + renderStringLeft (lines, width, color, task.get(_name)); else if (_style == "short") - { - if (task.has (_name)) - lines.push_back (color.colorize (leftJustify (task.get (_name).substr (28), width))); - else - lines.push_back (color.colorize (leftJustify ("", width))); - } + renderStringLeft (lines, width, color, task.get (_name).substr (28)); } }