summaryrefslogtreecommitdiff
path: root/indra/newview/lloutputmonitorctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lloutputmonitorctrl.cpp')
-rw-r--r--indra/newview/lloutputmonitorctrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lloutputmonitorctrl.cpp b/indra/newview/lloutputmonitorctrl.cpp
index 89b0105ae9..80477c1041 100644
--- a/indra/newview/lloutputmonitorctrl.cpp
+++ b/indra/newview/lloutputmonitorctrl.cpp
@@ -282,7 +282,7 @@ void LLOutputMonitorCtrl::switchIndicator(bool switch_on)
if (switch_on)
{
setVisible((BOOL)switch_on);
- if (isInVisibleChain())
+ if (getParent() && getParent()->isInVisibleChain())
{
notifyParentVisibilityChanged();
}
@@ -295,7 +295,7 @@ void LLOutputMonitorCtrl::switchIndicator(bool switch_on)
}
else
{
- if (isInVisibleChain())
+ if (getParent() && getParent()->isInVisibleChain())
{
LL_DEBUGS("SpeakingIndicator") << "Indicator is in visible chain, notifying parent: " << mSpeakerId << LL_ENDL;
setVisible((BOOL)switch_on);