summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-04-24 02:47:18 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-04-24 02:47:18 +0300
commit0bc76461fa4445491cf119e80cb854f1d6dd6896 (patch)
tree3ec24343d4f6e53d823073a195500552eed31607
parentc0ed9d28f19bcdde171842370e87eb82cf43b896 (diff)
SL-13080 Mac build fix
-rw-r--r--indra/newview/llfloatermodelpreview.cpp29
1 files changed, 21 insertions, 8 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index 083c2dab37..ba67f297a0 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -473,7 +473,7 @@ void populate_list_with_overrides(LLScrollListCtrl *listp, const LLJointOverride
return;
}
- static const LLSD no_override_placeholder("-"); // LLSD to not conflict in '?'
+ static const std::string no_override_placeholder = "-";
S32 count = 0;
LLScrollListCell::Params cell_params;
@@ -485,13 +485,26 @@ void populate_list_with_overrides(LLScrollListCtrl *listp, const LLJointOverride
std::map<std::string, LLVector3>::const_iterator map_end = data.mPosOverrides.end();
while (map_iter != map_end)
{
- add_row_to_list(listp,
- cell_params,
- LLSD::Integer(count),
- map_iter->first,
- include_overrides ? map_iter->second.mV[VX] : no_override_placeholder,
- include_overrides ? map_iter->second.mV[VY] : no_override_placeholder,
- include_overrides ? map_iter->second.mV[VZ] : no_override_placeholder);
+ if (include_overrides)
+ {
+ add_row_to_list(listp,
+ cell_params,
+ LLSD::Integer(count),
+ map_iter->first,
+ LLSD::Real(map_iter->second.mV[VX]),
+ LLSD::Real(map_iter->second.mV[VY]),
+ LLSD::Real(map_iter->second.mV[VZ]));
+ }
+ else
+ {
+ add_row_to_list(listp,
+ cell_params,
+ LLSD::Integer(count),
+ map_iter->first,
+ no_override_placeholder,
+ no_override_placeholder,
+ no_override_placeholder);
+ }
count++;
map_iter++;
}