# HG changeset patch # User rubidium # Date 2013-11-25 22:32:32 # Node ID 36bbaf5673937ab0eeeda53c539a4ef45e9deb9b # Parent f02101b3dda08d2733e496bd6bbb1a162d49a911 (svn r26116) -Codechange: validate that the number of lines in a graph is more than 0 diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp --- 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;