TW-1553: Setting defaultheight:0 makes burndown command hang

- Thanks to Tomas Babej.
This commit is contained in:
Paul Beckingham 2015-07-19 17:59:14 -04:00
parent ff53919af1
commit 063255ba16
11 changed files with 17 additions and 0 deletions

View file

@ -419,6 +419,12 @@ std::string Chart::render ()
return std::string (STRING_CMD_BURN_TOO_SMALL) + "\n";
}
else if (_graph_height > 1000 || // each line is a string allloc
_graph_width > 1000)
{
return std::string (STRING_CMD_BURN_TOO_LARGE) + "\n";
}
if (_max_value == 0)
context.footnote (STRING_FEEDBACK_NO_MATCH);