From 04e97a0bec525975ec4594a2abf542964a1e0d25 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 25 Nov 2013 22:32:32 +0000 Subject: (svn r26116) -Codechange: validate that the number of lines in a graph is more than 0 --- src/graph_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/graph_gui.cpp') diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index f63c57127..10779502d 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -200,6 +200,8 @@ protected: */ ValuesInterval GetValuesInterval(int num_hori_lines) const { + assert(num_hori_lines > 0); + ValuesInterval current_interval; current_interval.highest = INT64_MIN; current_interval.lowest = INT64_MAX; -- cgit v1.2.3-54-g00ecf