From be0c609eaf48fe876b47ac94627c9237c457348a Mon Sep 17 00:00:00 2001
From: maxim_productengine <mnikolenko@productengine.com>
Date: Thu, 2 May 2019 13:11:18 +0300
Subject: [PATCH] SL-11072 FIXED Crash in LLInventoryAction::doToSelected(2406)

---
 doc/contributions.txt                  | 1 +
 indra/newview/llinventoryfunctions.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/contributions.txt b/doc/contributions.txt
index 4e925592567..2d2a5c51fc8 100755
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -1079,6 +1079,7 @@ Nicky Dasmijn
     STORM-2010
 	STORM-2082
 	MAINT-6665
+	SL-11072
 Nicky Perian
 	OPEN-1
 	STORM-1087
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index b0004c5e58f..646d92b9e15 100644
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -2402,7 +2402,7 @@ void LLInventoryAction::doToSelected(LLInventoryModel* model, LLFolderView* root
 			LLFolderViewItem* folder_item = *set_iter;
 			if (folder_item)
 			{
-				LLInvFVBridge* bridge = (LLInvFVBridge*)folder_item->getViewModelItem();
+				LLInvFVBridge* bridge = dynamic_cast<LLInvFVBridge*>(folder_item->getViewModelItem());
 				if (!bridge || !bridge->isMultiPreviewAllowed())
 				{
 					open_multi_preview = false;
-- 
GitLab