diff options
author | Callum Linden <callum@lindenlab.com> | 2022-08-29 10:14:06 -0700 |
---|---|---|
committer | Callum Linden <callum@lindenlab.com> | 2022-08-29 10:14:06 -0700 |
commit | a3f7f7d8c08e19d338911e107707f756469716bc (patch) | |
tree | c86773c81cbcb03300132eb684134b878aeca357 /indra/llui/lllayoutstack.cpp | |
parent | 35de5fc912c908fb1c3c5257f28e72ffebe796c4 (diff) | |
parent | 592abc460c96b63b1b1e0d15914f7b64a0c88038 (diff) |
Merge remote-tracking branch 'origin/more-c++17' into DRTVWR-568
Diffstat (limited to 'indra/llui/lllayoutstack.cpp')
-rw-r--r-- | indra/llui/lllayoutstack.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/indra/llui/lllayoutstack.cpp b/indra/llui/lllayoutstack.cpp index aac28e04b9..77938edf27 100644 --- a/indra/llui/lllayoutstack.cpp +++ b/indra/llui/lllayoutstack.cpp @@ -395,7 +395,6 @@ void LLLayoutStack::updateLayout() space_to_distribute += panelp ? ll_round((F32)mPanelSpacing * panelp->getVisibleAmount()) : 0; S32 remaining_space = space_to_distribute; - F32 fraction_distributed = 0.f; if (space_to_distribute > 0 && total_visible_fraction > 0.f) { // give space proportionally to visible auto resize panels BOOST_FOREACH(LLLayoutPanel* panelp, mPanels) @@ -404,7 +403,6 @@ void LLLayoutStack::updateLayout() { F32 fraction_to_distribute = (panelp->mFractionalSize * panelp->getAutoResizeFactor()) / (total_visible_fraction); S32 delta = ll_round((F32)space_to_distribute * fraction_to_distribute); - fraction_distributed += fraction_to_distribute; panelp->mTargetDim += delta; remaining_space -= delta; } |