diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Container.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Container.cc b/src/FbTk/Container.cc index 0ddc421..6270c6a 100644 --- a/src/FbTk/Container.cc +++ b/src/FbTk/Container.cc | |||
@@ -404,7 +404,7 @@ void Container::repositionItems() { | |||
404 | for (int i = 0; i < buttonDemands.size(); ++i) { | 404 | for (int i = 0; i < buttonDemands.size(); ++i) { |
405 | if (buttonDemands.at(i) > thresh) { | 405 | if (buttonDemands.at(i) > thresh) { |
406 | int d = buttonDemands.at(i)*overhead/greed; | 406 | int d = buttonDemands.at(i)*overhead/greed; |
407 | if (buttonDemands.at(i) - d > mean) { | 407 | if (buttonDemands.at(i) > mean + d) { |
408 | buttonDemands.at(i) -= d; | 408 | buttonDemands.at(i) -= d; |
409 | } else { // do not shrink below mean or a huge item number would super-punish larger ones | 409 | } else { // do not shrink below mean or a huge item number would super-punish larger ones |
410 | d = buttonDemands.at(i) - mean; | 410 | d = buttonDemands.at(i) - mean; |