From 65b8fb7bcead8f3621cf3cdc67dd1fb881a7c5ec Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 31 Oct 2015 15:53:15 -0400 Subject: [PATCH] ColParent: Fixed short form truncation - The short form now takes the first 8 characters, not the last. No one noticed. --- src/columns/ColParent.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/columns/ColParent.cpp b/src/columns/ColParent.cpp index a10e24570..d37438647 100644 --- a/src/columns/ColParent.cpp +++ b/src/columns/ColParent.cpp @@ -41,7 +41,7 @@ ColumnParent::ColumnParent () _label = STRING_COLUMN_LABEL_PARENT; _modifiable = false; _styles = {"long", "short"}; - _examples = {"f30cb9c3-3fc0-483f-bfb2-3bf134f00694", "34f00694"}; + _examples = {"f30cb9c3-3fc0-483f-bfb2-3bf134f00694", "f30cb9c3"}; } //////////////////////////////////////////////////////////////////////////////// @@ -75,11 +75,12 @@ void ColumnParent::render ( { // f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default // 34f00694 short - if (_style == "default" || _style == "long") + if (_style == "default" || + _style == "long") renderStringLeft (lines, width, color, task.get(_name)); else if (_style == "short") - renderStringLeft (lines, width, color, task.get (_name).substr (28)); + renderStringLeft (lines, width, color, task.get (_name).substr (0, 8)); } }