From c6904c8dc2787047f1999737bc0e5813c56901a0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Mar 2014 21:20:11 +0200 Subject: [PATCH] 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. --- source/list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.45.2