From 65c038685f18eb8f70756e584482d7f97fa8c383 Mon Sep 17 00:00:00 2001 From: Aaron Brashears Date: Mon, 11 Jun 2007 22:11:02 +0000 Subject: fix for crash because of recent changes in tool handleSelect() from Richard. SL-44935 --- indra/newview/lltoolgrab.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/lltoolgrab.cpp b/indra/newview/lltoolgrab.cpp index 3250e42232..6a65942785 100644 --- a/indra/newview/lltoolgrab.cpp +++ b/indra/newview/lltoolgrab.cpp @@ -75,7 +75,11 @@ LLToolGrab::~LLToolGrab() // virtual void LLToolGrab::handleSelect() { - gFloaterTools->setStatusText("Drag to move objects, Ctrl to lift, Ctrl-Shift to spin"); + if(gFloaterTools) + { + // viewer can crash during startup if we don't check. + gFloaterTools->setStatusText("Drag to move objects, Ctrl to lift, Ctrl-Shift to spin"); + } gGrabBtnVertical = FALSE; gGrabBtnSpin = FALSE; } -- cgit v1.2.3