X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flist.cpp;h=710d1fc6fa7cf7c05e2fe88e5c6349aa018cf298;hb=768c65e13861f72929290ac2513df9975579e543;hp=4ce35e266f4418accb2b9b2716480dc1451f20ad;hpb=df07e8f3e239b146cbc458d3cbd69758e590d255;p=libs%2Fgltk.git diff --git a/source/list.cpp b/source/list.cpp index 4ce35e2..710d1fc 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -64,15 +64,16 @@ 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