diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-08-28 11:26:39 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-08-28 11:26:39 +0300 |
commit | 0735380c60bb789aa8c1073699df8e473b083534 (patch) | |
tree | 562f373825fa592dce0207a5c73defd48fbde17e /indra/newview/llsnapshotlivepreview.cpp | |
parent | 7215b2f2363dce115681283b22238d1b7586fabb (diff) |
MAINT-5548 FIXED Don't update snapshot when resizing Viewer if snapshot floater is closed.
Diffstat (limited to 'indra/newview/llsnapshotlivepreview.cpp')
-rw-r--r-- | indra/newview/llsnapshotlivepreview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llsnapshotlivepreview.cpp b/indra/newview/llsnapshotlivepreview.cpp index 6af9d61a54..8561a89ae5 100644 --- a/indra/newview/llsnapshotlivepreview.cpp +++ b/indra/newview/llsnapshotlivepreview.cpp @@ -463,7 +463,10 @@ void LLSnapshotLivePreview::reshape(S32 width, S32 height, BOOL called_from_pare if (old_rect.getWidth() != width || old_rect.getHeight() != height) { LL_DEBUGS() << "window reshaped, updating thumbnail" << LL_ENDL; - updateSnapshot(TRUE); + if (mViewContainer && mViewContainer->isInVisibleChain()) + { + updateSnapshot(TRUE); + } } } |