From 0e4f11afc5e344fb01fc9598596b3d710c3d2605 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 31 Dec 2016 11:11:04 -0500 Subject: [PATCH] ColRecur: Corrected use of _name --- src/columns/ColRecur.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/columns/ColRecur.cpp b/src/columns/ColRecur.cpp index 4d05ec235..160a6e287 100644 --- a/src/columns/ColRecur.cpp +++ b/src/columns/ColRecur.cpp @@ -74,11 +74,11 @@ void ColumnRecur::measure (Task& task, unsigned int& minimum, unsigned int& maxi if (_style == "default" || _style == "duration") { - minimum = maximum = Duration (task.get ("recur")).formatISO ().length (); + minimum = maximum = Duration (task.get (_name)).formatISO ().length (); } else if (_style == "indicator") { - if (task.has ("recur")) + if (task.has (_name)) minimum = maximum = utf8_width (context.config.get ("recurrence.indicator")); else minimum = maximum = 0; @@ -99,7 +99,7 @@ void ColumnRecur::render ( { if (_style == "default" || _style == "duration") - renderStringRight (lines, width, color, Duration (task.get ("recur")).formatISO ()); + renderStringRight (lines, width, color, Duration (task.get (_name)).formatISO ()); else if (_style == "indicator") renderStringRight (lines, width, color, context.config.get ("recurrence.indicator"));