mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-02 03:37:19 +02:00
Bug - Seg fault
- Fixed seg fault caused when a custom report had no override labels.
This commit is contained in:
parent
58a04b9813
commit
e83b468ade
1 changed files with 2 additions and 1 deletions
|
@ -127,6 +127,7 @@ int CmdCustom::execute (std::string& output)
|
||||||
for (unsigned int i = 0; i < columns.size (); ++i)
|
for (unsigned int i = 0; i < columns.size (); ++i)
|
||||||
{
|
{
|
||||||
Column* c = Column::factory (columns[i], _keyword);
|
Column* c = Column::factory (columns[i], _keyword);
|
||||||
|
if (i < labels.size ())
|
||||||
c->setLabel (labels[i]);
|
c->setLabel (labels[i]);
|
||||||
view.add (c);
|
view.add (c);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue