summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersnapshot.cpp
diff options
context:
space:
mode:
authorNiranV <NiranV.Dean@googlemail.com>2014-08-20 16:04:50 +0200
committerNiranV <NiranV.Dean@googlemail.com>2014-08-20 16:04:50 +0200
commit417362e9d8555b77c8510430e2a4b3e8901be2b3 (patch)
treec0e44e572ce93a28283eff7b09ebd01f03bd65ad /indra/newview/llfloatersnapshot.cpp
parent5bdf2a0cda79e7cf67818489e8d3a86232863758 (diff)
STORM-2060/STORM-2076: Changed: Code to a more appropiate, shorter version. Thanks Oz.
Diffstat (limited to 'indra/newview/llfloatersnapshot.cpp')
-rwxr-xr-xindra/newview/llfloatersnapshot.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp
index 31b743b7e8..8037c22173 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)
{