diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 484051f5467..b08b608db54 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -339,7 +339,7 @@ void ItemList::set_same_column_width(bool p_enable) { update(); shape_changed = true; } -int ItemList::is_same_column_width() const { +bool ItemList::is_same_column_width() const { return same_column_width; } diff --git a/scene/gui/item_list.h b/scene/gui/item_list.h index 137eff88855..dcffe4bce79 100644 --- a/scene/gui/item_list.h +++ b/scene/gui/item_list.h @@ -169,7 +169,7 @@ public: int get_fixed_column_width() const; void set_same_column_width(bool p_enable); - int is_same_column_width() const; + bool is_same_column_width() const; void set_max_text_lines(int p_amount); int get_max_text_lines() const;