From 768c65e13861f72929290ac2513df9975579e543 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 25 Jun 2013 21:45:00 +0300 Subject: [PATCH] Autosize all items in a List --- source/list.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/list.cpp b/source/list.cpp index 0faf151..710d1fc 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -64,12 +64,13 @@ void List::autosize_rows(unsigned n) unsigned max_w = 0; unsigned total_h = 0; - for(unsigned i=0; (iautosize(); const Geometry &igeom = items[i]->get_geometry(); max_w = max(max_w, igeom.w); - total_h += igeom.h; + if(i