X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flist.cpp;h=0faf151456efd9703d605b8de5e9bb26c58c9c58;hb=712f0cdee978088b29be3ef67310b26a048334ff;hp=378bf707c1a7d702f2192d50b0da8cd2ea70d9bc;hpb=d75275638b2dfeb5e346c42ec2c4498da3671042;p=libs%2Fgltk.git diff --git a/source/list.cpp b/source/list.cpp index 378bf70..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()(l) +{ + add("item", &Loader::item); +} + void List::Loader::item(const string &v) { - dynamic_cast &>(*dynamic_cast(obj).data).append(v); + dynamic_cast &>(*obj.data).append(v); } } // namespace GLtk