X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Flist.cpp;h=005f6fa8ea29cc2a57cd23152f46167dacf922a1;hb=0eff24ae4db82ac5cadf7e59405e206284c1504c;hp=5d179e195c36c412785a17ec7d731f65856f420d;hpb=b3de715986f0e5b6359a2109c27d052c3d9cc27a;p=libs%2Fgltk.git diff --git a/source/list.cpp b/source/list.cpp index 5d179e1..005f6fa 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -71,18 +71,16 @@ void List::autosize_special(const Part &part, Geometry &ageom) const const Sides &margin = part.get_margin(); unsigned max_w = 0; - unsigned total_h = 0; + unsigned max_h = 0; for(unsigned i=0; iautosize(igeom); max_w = max(max_w, igeom.w); - if(view_size==0 || i