- Fixed Table::calculateColumnWidths bug.

This commit is contained in:
Paul Beckingham
2008-05-24 23:08:36 -04:00
parent ab0a57ec89
commit 45a25ca47b
7 changed files with 366 additions and 59 deletions

View File

@@ -476,8 +476,16 @@ void Table::calculateColumnWidths ()
mCalculatedWidth = ideal;
return;
}
// else
else
{
// std::cout << "# insufficient room, considering only flexible columns." << std::endl;
// The fallback position is to assume no width was specificed, and just
// calculate widths accordingly.
mTableWidth = 0;
calculateColumnWidths ();
return;
}
}
// Try again, treating minimum columns as flexible.