- Fixed bug so that columns of type "string*" calculate ideal size
  by taking into account \n characters in the data, rather than simply
  the string length.
This commit is contained in:
Paul Beckingham 2011-05-31 00:46:56 -04:00
parent 5d9fb1fff9
commit bcbff8d99b

View file

@ -62,7 +62,7 @@ void ColumnString::measure (const std::string& value, int& minimum, int& maximum
_style == "default") _style == "default")
{ {
std::string stripped = Color::strip (value); std::string stripped = Color::strip (value);
maximum = stripped.length (); maximum = longestLine (stripped);
minimum = longestWord (stripped); minimum = longestWord (stripped);
} }
else if (_style == "left_fixed" || else if (_style == "left_fixed" ||