(svn r26116) -Codechange: validate that the number of lines in a graph is more than 0

This commit is contained in:
rubidium
2013-11-25 22:32:32 +00:00
parent 089d75e250
commit 11b039e812

View File

@@ -200,6 +200,8 @@ protected:
*/ */
ValuesInterval GetValuesInterval(int num_hori_lines) const ValuesInterval GetValuesInterval(int num_hori_lines) const
{ {
assert(num_hori_lines > 0);
ValuesInterval current_interval; ValuesInterval current_interval;
current_interval.highest = INT64_MIN; current_interval.highest = INT64_MIN;
current_interval.lowest = INT64_MAX; current_interval.lowest = INT64_MAX;