Skip to content
Snippets Groups Projects
Commit 7e5ede16 authored by NiranV's avatar NiranV
Browse files

STORM-2060/STORM-2076: Added: Commenting to explain why we use the height...

STORM-2060/STORM-2076: Added: Commenting to explain why we use the height spinner instead of the width one.
parent 887510c3
No related branches found
No related tags found
No related merge requests found
/** /**
* @file llfloatersnapshot.cpp * @file llfloatersnapshot.cpp
* @brief Snapshot preview window, allowing saving, e-mailing, etc. * @brief Snapshot preview window, allowing saving, e-mailing, etc.
* *
...@@ -813,6 +813,10 @@ void LLFloaterSnapshot::Impl::updateResolution(LLUICtrl* ctrl, void* data, BOOL ...@@ -813,6 +813,10 @@ void LLFloaterSnapshot::Impl::updateResolution(LLUICtrl* ctrl, void* data, BOOL
previewp->getSize(width, height); 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 updateSpinners(view, previewp, width, height, !getHeightSpinner(view)->isDirty()); // may change width and height
if(getWidthSpinner(view)->getValue().asInteger() != width || getHeightSpinner(view)->getValue().asInteger() != height) if(getWidthSpinner(view)->getValue().asInteger() != width || getHeightSpinner(view)->getValue().asInteger() != height)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment