summaryrefslogtreecommitdiff
path: root/indra/newview/lllocationinputctrl.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-23 11:09:45 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-23 11:09:45 +0000
commit076b02ec333a942bb1f747252cf5ad8b9350009d (patch)
treee3de3c0dab7aa49a6facc806291c646f3d3afd14 /indra/newview/lllocationinputctrl.cpp
parenta67d890523e49b1dcb177fafc63e1081d9f65f6c (diff)
parent0cd1b3f776a25c8c99dc4256348b118e93c9cd2a (diff)
viewer2 merge.
Diffstat (limited to 'indra/newview/lllocationinputctrl.cpp')
-rw-r--r--indra/newview/lllocationinputctrl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp
index 04c684b240..a9ead36a70 100644
--- a/indra/newview/lllocationinputctrl.cpp
+++ b/indra/newview/lllocationinputctrl.cpp
@@ -674,6 +674,15 @@ void LLLocationInputCtrl::onLocationPrearrange(const LLSD& data)
_1, filter));
}
}
+ if(mList->isEmpty())
+ {
+ /**
+ * Add a couple of empty items for a better view.
+ * EXT-5194
+ */
+ for(int i = 0; i < NUMBER_OF_EMPTY_ITEMS; i++ )
+ add("", LLSD());
+ }
sortByName();
mList->mouseOverHighlightNthItem(-1); // Clear highlight on the last selected item.