From: Mikko Rasa Date: Sun, 16 Jun 2013 20:21:21 +0000 (+0300) Subject: Don't divide by zero when autosizing a List with no items X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=commitdiff_plain;h=712f0cdee978088b29be3ef67310b26a048334ff Don't divide by zero when autosizing a List with no items --- diff --git a/source/list.cpp b/source/list.cpp index 4ce35e2..0faf151 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -72,7 +72,7 @@ void List::autosize_rows(unsigned n) total_h += igeom.h; } - if(items.size()