summaryrefslogtreecommitdiff
path: root/indra/newview/llsnapshotlivepreview.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <andreylproductengine@lindenlab.com>2015-08-28 20:59:28 +0300
committerAndrey Lihatskiy <andreylproductengine@lindenlab.com>2015-08-28 20:59:28 +0300
commit12ff893e98ec00c51ef2d3fc4cb16bf8bc4f856a (patch)
tree9ff1664948fa0a63a001d74546ae0d63484fbab4 /indra/newview/llsnapshotlivepreview.cpp
parent9c391b3deaf66e698590065b6770549e00f4d9bc (diff)
parent41d2a60cba059539e708380f8964dea45a119546 (diff)
Merged lindenlab/viewer-lion into default
Diffstat (limited to 'indra/newview/llsnapshotlivepreview.cpp')
-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);
+ }
}
}