STORM-2060/STORM-2076: Changed: Code to a more appropiate, shorter version. Thanks Oz.
parent
5bdf2a0cda
commit
417362e9d8
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue