mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
ColMask: Corrected use of _name
This commit is contained in:
parent
b3e976fbaa
commit
a8d7a5122a
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ void ColumnMask::measure (Task& task, unsigned int& minimum, unsigned int& maxim
|
||||||
minimum = maximum = 0;
|
minimum = maximum = 0;
|
||||||
if (task.has (_name))
|
if (task.has (_name))
|
||||||
{
|
{
|
||||||
minimum = maximum = task.get ("mask").length ();
|
minimum = maximum = task.get (_name).length ();
|
||||||
|
|
||||||
if (_style != "default")
|
if (_style != "default")
|
||||||
throw format (STRING_COLUMN_BAD_FORMAT, _name, _style);
|
throw format (STRING_COLUMN_BAD_FORMAT, _name, _style);
|
||||||
|
@ -62,7 +62,7 @@ void ColumnMask::render (
|
||||||
Color& color)
|
Color& color)
|
||||||
{
|
{
|
||||||
if (task.has (_name))
|
if (task.has (_name))
|
||||||
renderStringLeft (lines, width, color, task.get ("mask"));
|
renderStringLeft (lines, width, color, task.get (_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue