From c452c2eb4088e2060bcc64035153bb06c83132d9 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 11 Dec 2008 22:47:43 -0700 Subject: VWR-10823: Right click > Inspect crashes viewer. Backported from LL's 1.22 RC3. --- linden/indra/newview/llfloaterinspect.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linden') diff --git a/linden/indra/newview/llfloaterinspect.cpp b/linden/indra/newview/llfloaterinspect.cpp index d308210..8a665b5 100644 --- a/linden/indra/newview/llfloaterinspect.cpp +++ b/linden/indra/newview/llfloaterinspect.cpp @@ -206,8 +206,9 @@ void LLFloaterInspect::refresh() mObjectList->operateOnAll(LLScrollListCtrl::OP_DELETE); //List all transient objects, then all linked objects - for (LLObjectSelection::iterator iter = mObjectSelection->begin(); - iter != mObjectSelection->end(); iter++) + //Crash fix for VWR-10823 + for (LLObjectSelection::valid_iterator iter = mObjectSelection->valid_begin(); + iter != mObjectSelection->valid_end(); iter++) { LLSelectNode* obj = *iter; LLSD row; -- cgit v1.1