From 0129106bdf80aa7bfb897e39a32045daf2cc471c Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 20 May 2025 16:20:56 +0300 Subject: #4110 Crash on LLScrollListCtrl::deleteSelectedItems --- indra/llui/llscrolllistctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llui') diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 245339b107..ff77b4d482 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -1007,7 +1007,7 @@ void LLScrollListCtrl::deleteItems(const LLSD& sd) void LLScrollListCtrl::deleteSelectedItems() { item_list::iterator iter; - for (iter = mItemList.begin(); iter < mItemList.end(); ) + for (iter = mItemList.begin(); iter != mItemList.end(); ) { LLScrollListItem* itemp = *iter; if (itemp->getSelected()) -- cgit v1.3 From aeefc73129978f6f2c1ba8caaff2750eff2cfbb3 Mon Sep 17 00:00:00 2001 From: TJ Date: Tue, 27 May 2025 11:03:05 +1000 Subject: Add font buffer resetting in LLLineEditor.clear() (#4159) --- indra/llui/lllineeditor.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/llui') diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index 66b274c33f..7a923b98df 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -2230,6 +2230,9 @@ void LLLineEditor::clear() { mText.clear(); setCursor(0); + mFontBufferPreSelection.reset(); + mFontBufferSelection.reset(); + mFontBufferPostSelection.reset(); } //virtual -- cgit v1.3