aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewgesture.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llpreviewgesture.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
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;