- Fixed problem with incorrect Color vector addressing.
- Modified ViewText to not underline empty column headers.
- Implemented ViewText::set method to set only color.
This commit is contained in:
Paul Beckingham 2011-05-23 20:16:37 -04:00
parent f0f3e55cc6
commit f8b44b68d7
5 changed files with 37 additions and 26 deletions

View file

@ -163,7 +163,8 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
if (_width == 0 || sum_ideal <= overage)
widths = ideal;
else if (sum_minimal > overage)
throw std::string ("There is not enough horizontal width to display the results.");
// throw std::string ("There is not enough horizontal width to display the results.");
widths = minimal;
else
{
widths = minimal;
@ -221,7 +222,7 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
if (c)
out += intra;
if (headers[i].size () < max_lines - i)
if (headers[c].size () < max_lines - i)
out += _header.colorize (std::string (widths[c], ' '));
else
out += headers[c][i];