From ab299e01552fd9392c1872478097c40f04b4d76d Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 10 Aug 2021 22:46:17 -0400
Subject: [PATCH] Fix clamping quality in setSnapshotQuality

---
 indra/newview/llsnapshotlivepreview.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llsnapshotlivepreview.cpp b/indra/newview/llsnapshotlivepreview.cpp
index 42eca88132f..b192cef1d9e 100644
--- a/indra/newview/llsnapshotlivepreview.cpp
+++ b/indra/newview/llsnapshotlivepreview.cpp
@@ -220,7 +220,7 @@ void LLSnapshotLivePreview::updateSnapshot(BOOL new_snapshot, BOOL new_thumbnail
 // Return true if the quality has been changed, false otherwise
 bool LLSnapshotLivePreview::setSnapshotQuality(S32 quality, bool set_by_user)
 {
-	llclamp(quality, 0, 100);
+    quality = llclamp(quality, 0, 100);
 	if (quality != mSnapshotQuality)
 	{
 		mSnapshotQuality = quality;
-- 
GitLab