diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp
index 927ea19d9802c80f48458a843b0a042952843133..e4079c709a6c895573c75e1d72d8aa2420621922 100644
--- a/indra/newview/lloutfitslist.cpp
+++ b/indra/newview/lloutfitslist.cpp
@@ -613,7 +613,7 @@ void LLOutfitsList::applyFilterToTab(
 	{
 		// hide tab if its title doesn't pass filter
 		// and it has no visible items
-		tab->setVisible(!list->empty());
+		tab->setVisible(list->size() > 0);
 
 		// remove title highlighting because it might
 		// have been previously highlighted by less restrictive filter