summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorNiranV <NiranV.Dean@googlemail.com>2014-08-20 16:56:18 +0200
committerNiranV <NiranV.Dean@googlemail.com>2014-08-20 16:56:18 +0200
commit7e5ede1678ef6b167602b3d8d0660c5e89e319f5 (patch)
tree9380991bb40a3252dd739ce3ca6a3a0fc12dd008 /indra/newview
parent887510c335ebd83dc7f61753443f2e35dc2a69e2 (diff)
STORM-2060/STORM-2076: Added: Commenting to explain why we use the height spinner instead of the width one.
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llfloatersnapshot.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp
index 8037c22173..8677028942 100755
--- a/indra/newview/llfloatersnapshot.cpp
+++ b/indra/newview/llfloatersnapshot.cpp
@@ -1,4 +1,4 @@
-/**
+/**
* @file llfloatersnapshot.cpp
* @brief Snapshot preview window, allowing saving, e-mailing, etc.
*
@@ -813,6 +813,10 @@ void LLFloaterSnapshot::Impl::updateResolution(LLUICtrl* ctrl, void* data, BOOL
previewp->getSize(width, height);
+ // We use the height spinner here because we come here via the aspect ratio
+ // checkbox as well and we want height always changing to width by default.
+ // If we use the width spinner we would change width according to height by
+ // default, that is not what we want.
updateSpinners(view, previewp, width, height, !getHeightSpinner(view)->isDirty()); // may change width and height
if(getWidthSpinner(view)->getValue().asInteger() != width || getHeightSpinner(view)->getValue().asInteger() != height)