summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-08-28 11:26:39 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-08-28 11:26:39 +0300
commit0735380c60bb789aa8c1073699df8e473b083534 (patch)
tree562f373825fa592dce0207a5c73defd48fbde17e /indra/newview
parent7215b2f2363dce115681283b22238d1b7586fabb (diff)
MAINT-5548 FIXED Don't update snapshot when resizing Viewer if snapshot floater is closed.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llsnapshotlivepreview.cpp5
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);
+ }
}
}