X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Flist.cpp;h=710d1fc6fa7cf7c05e2fe88e5c6349aa018cf298;hp=0faf151456efd9703d605b8de5e9bb26c58c9c58;hb=768c65e13861f72929290ac2513df9975579e543;hpb=12e112954dc44bc739644381e2859894dc49a683 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