STORM-2060/STORM-2076: Changed: Code to a more appropiate, shorter version. Thanks Oz.

meow-7.2.2
NiranV 2014-08-20 16:04:50 +02:00
parent 5bdf2a0cda
commit 417362e9d8
1 changed files with 1 additions and 10 deletions

View File

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