diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp
index 31b743b7e883ad99381744e51717cf5b1cd97554..8037c221737acab41e338293d781d7a0b47d6824 100755
--- a/indra/newview/llfloatersnapshot.cpp
+++ b/indra/newview/llfloatersnapshot.cpp
@@ -813,16 +813,7 @@ void LLFloaterSnapshot::Impl::updateResolution(LLUICtrl* ctrl, void* data, BOOL
 
 		previewp->getSize(width, height);
 
-		bool width_changed;
-		if(getHeightSpinner(view)->isDirty())
-		{
-			width_changed = FALSE;
-		}
-		else
-		{
-			width_changed = TRUE;
-		}
-		updateSpinners(view, previewp, width, height, width_changed); // may change width and height
+		updateSpinners(view, previewp, width, height, !getHeightSpinner(view)->isDirty()); // may change width and height
 		
 		if(getWidthSpinner(view)->getValue().asInteger() != width || getHeightSpinner(view)->getValue().asInteger() != height)
 		{