aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewgesture.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpreviewgesture.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/newview/llpreviewgesture.cpp b/linden/indra/newview/llpreviewgesture.cpp
index 5f657d3..2bb0108 100644
--- a/linden/indra/newview/llpreviewgesture.cpp
+++ b/linden/indra/newview/llpreviewgesture.cpp
@@ -1590,6 +1590,11 @@ LLScrollListItem* LLPreviewGesture::addStep(const std::string& library_text)
1590 { 1590 {
1591 step = new LLGestureStepWait(); 1591 step = new LLGestureStepWait();
1592 } 1592 }
1593 else
1594 {
1595 llerrs << "Unknown step type: " << library_text << llendl;;
1596 return NULL;
1597 }
1593 1598
1594 // Create an enabled item with this step 1599 // Create an enabled item with this step
1595 LLSD row; 1600 LLSD row;
@@ -1645,7 +1650,7 @@ void LLPreviewGesture::onClickDelete(void* data)
1645 1650
1646 LLScrollListItem* item = self->mStepList->getFirstSelected(); 1651 LLScrollListItem* item = self->mStepList->getFirstSelected();
1647 S32 selected_index = self->mStepList->getFirstSelectedIndex(); 1652 S32 selected_index = self->mStepList->getFirstSelectedIndex();
1648 if (selected_index >= 0) 1653 if (item && selected_index >= 0)
1649 { 1654 {
1650 LLGestureStep* step = (LLGestureStep*)item->getUserdata(); 1655 LLGestureStep* step = (LLGestureStep*)item->getUserdata();
1651 delete step; 1656 delete step;