summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpostcard.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2010-12-09 20:58:20 -0800
committerMerov Linden <merov@lindenlab.com>2010-12-09 20:58:20 -0800
commit3e82ab0cc5c96e7c288ed3f93af7644a67a95afa (patch)
tree7fd93dbf8a4538ab5ec09893172e6b355553d1be /indra/newview/llfloaterpostcard.cpp
parent45080fd7cbca8a19d21906a890c785282fff09fe (diff)
parent519cf939d90e67acab808a63f5788e14c1d8bc8a (diff)
STORM-728 : Pull into viewer-development
Diffstat (limited to 'indra/newview/llfloaterpostcard.cpp')
-rw-r--r--indra/newview/llfloaterpostcard.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/llfloaterpostcard.cpp b/indra/newview/llfloaterpostcard.cpp
index f0c9d52ccd..054ab4538b 100644
--- a/indra/newview/llfloaterpostcard.cpp
+++ b/indra/newview/llfloaterpostcard.cpp
@@ -112,11 +112,14 @@ LLFloaterPostcard* LLFloaterPostcard::showFromSnapshot(LLImageJPEG *jpeg, LLView
// Take the images from the caller
// It's now our job to clean them up
LLFloaterPostcard* instance = LLFloaterReg::showTypedInstance<LLFloaterPostcard>("postcard", LLSD(img->getID()));
-
- instance->mJPEGImage = jpeg;
- instance->mViewerImage = img;
- instance->mImageScale = image_scale;
- instance->mPosTakenGlobal = pos_taken_global;
+
+ if (instance) // may be 0 if we're in mouselook mode
+ {
+ instance->mJPEGImage = jpeg;
+ instance->mViewerImage = img;
+ instance->mImageScale = image_scale;
+ instance->mPosTakenGlobal = pos_taken_global;
+ }
return instance;
}