diff options
| author | Vadim ProductEngine <vsavchuk@productengine.com> | 2010-12-09 12:49:34 +0200 | 
|---|---|---|
| committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2010-12-09 12:49:34 +0200 | 
| commit | 519cf939d90e67acab808a63f5788e14c1d8bc8a (patch) | |
| tree | d45ae642e50c1532239f8210ab4fe1cc9b96e4de /indra/newview | |
| parent | ef27fe3c93fe693c4d326e18609c2e437a93e538 (diff) | |
STORM-728 FIXED Fixed crash when choosing to send snapshot by email in mouselook mode.
- Fixed dereferencing a NULL pointer.
- Added EMAIL SNAPSHOT floater to the list of floaters allowed in mouselook mode.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 1 | ||||
| -rw-r--r-- | indra/newview/llfloaterpostcard.cpp | 13 | 
2 files changed, 9 insertions, 5 deletions
| diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 402a0e85c4..ed67a87024 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -12241,6 +12241,7 @@        <key>Value</key>        <array>  	      <string>snapshot</string> +	      <string>postcard</string>  	      <string>mini_map</string>        </array>      </map> 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;  } | 
