From 7049757342a45a60d1d35bd59a6af307a17cf0d4 Mon Sep 17 00:00:00 2001
From: maxim_productengine <mnikolenko@productengine.com>
Date: Thu, 6 Jun 2019 17:38:36 +0300
Subject: [PATCH] SL-11376 FIXED [EEP] The 'Environment' tab becomes inactive
 after CTRL + left-clicking on the 'Sky Altitudes'

---
 indra/newview/llpanelenvironment.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp
index 034e5f81b4a..554fe6e9bc7 100644
--- a/indra/newview/llpanelenvironment.cpp
+++ b/indra/newview/llpanelenvironment.cpp
@@ -736,6 +736,9 @@ void LLPanelEnvironmentInfo::onAltSliderCallback(LLUICtrl *cntrl, const LLSD &da
 {
     LLMultiSliderCtrl *sld = (LLMultiSliderCtrl *)cntrl;
     std::string sld_name = sld->getCurSlider();
+
+    if (sld_name.empty()) return;
+
     F32 sld_value = sld->getCurSliderValue();
 
     mAltitudes[sld_name].mAltitude = sld_value;
-- 
GitLab