From a687273d5772e04b1d956abb7850acaf423c307f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Fri, 10 Jan 2020 16:07:14 -0500 Subject: [PATCH] Default column sorting to list sort_ascending attribute value --- indra/llui/llscrolllistctrl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 23aa72da6..78c3c750f 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -2759,9 +2759,9 @@ void LLScrollListCtrl::setScrollListParameters(LLXMLNodePtr node) } else // Singu Note: if a scroll list does not provide sort_direction, provide sort_ascending to sort as expected { - bool sort_ascending = true; - child->getAttribute_bool("sort_ascending", sort_ascending); - columns[index]["sort_ascending"] = sort_ascending; + bool col_sort_ascending = sort_ascending; + child->getAttribute_bool("sort_ascending", col_sort_ascending); + columns[index]["sort_ascending"] = col_sort_ascending; } S32 columnwidth = -1;