mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix
- Fixed bug that caused asserts in Table.cpp when a column had a blank heading and value.
This commit is contained in:
parent
3dcda73e0c
commit
f3d3126839
1 changed files with 2 additions and 2 deletions
|
@ -117,11 +117,11 @@ void Table::setTableDashedUnderline ()
|
|||
int Table::addColumn (const std::string& col)
|
||||
{
|
||||
mSpecifiedWidth.push_back (minimum);
|
||||
mMaxDataWidth.push_back (col.length ());
|
||||
mMaxDataWidth.push_back (col == "" ? 1 : col.length ());
|
||||
mCalculatedWidth.push_back (0);
|
||||
mColumnPadding.push_back (0);
|
||||
|
||||
mColumns.push_back (col);
|
||||
mColumns.push_back (col == "" ? " " : col);
|
||||
return mColumns.size () - 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue