From: Mikko Rasa Date: Wed, 12 Mar 2014 19:20:11 +0000 (+0200) Subject: Always set column widths on the item itself X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=commitdiff_plain;h=c6904c8dc2787047f1999737bc0e5813c56901a0 Always set column widths on the item itself A newly created item gets parented to the List before it appears in its item array. As such, the loop inside the if block won't reach it. --- diff --git a/source/list.cpp b/source/list.cpp index f42d573..1b26a3f 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -413,8 +413,8 @@ void List::MultiColumnItem::on_style_change() if(MultiColumnItem *mci = dynamic_cast(*i)) mci->set_widths(self_widths); } - else - set_widths(self_widths); + + set_widths(self_widths); }