STORM-2060/STORM-2076: Added: Commenting to explain why we use the height spinner instead of the width one.

meow-7.2.2
NiranV 2014-08-20 16:56:18 +02:00
parent 887510c335
commit 7e5ede1678
1 changed files with 5 additions and 1 deletions

View File

@ -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)