mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1678: segfault in ~ViewTask()
- Column::setStyle now validates column styles. - Thanks to Daniel Shahaf.
This commit is contained in:
parent
cb011026aa
commit
93e6ef5fb9
4 changed files with 14 additions and 3 deletions
|
@ -52,7 +52,7 @@ ColumnDue::~ColumnDue ()
|
|||
// Note that you can not determine which gets called first.
|
||||
void ColumnDue::setStyle (const std::string& value)
|
||||
{
|
||||
_style = value;
|
||||
Column::setStyle (value);
|
||||
|
||||
if (_style == "countdown" && _label == STRING_COLUMN_LABEL_DUE)
|
||||
_label = STRING_COLUMN_LABEL_COUNT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue