summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-05-08 12:12:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-05-08 12:26:41 +0100
commitcb283d8f0766b3069aa20c8c825eefca29537d6f (patch)
treea8905ff3aab1f96c8348d7ec48f0ed3e9265d12e
parent959fb9287dba87e4326532fd9093ced319734e4b (diff)
consider borderline outliers as outliers
Change-Id: I138cdcb29b4e38211feb9e2d6a81a6ecb1688084
-rw-r--r--vcl/source/window/layout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index c3935d967e59..4714f1ede104 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -351,7 +351,7 @@ static long getMaxNonOutlier(const std::vector<long> &rG, long nAvgDimension)
aEnd = rG.end(); aI != aEnd; ++aI)
{
long nPrimaryChildDimension = *aI;
- if (nPrimaryChildDimension <= nAvgDimension * 1.5)
+ if (nPrimaryChildDimension < nAvgDimension * 1.5)
{
nMaxDimensionNonOutlier = std::max(nPrimaryChildDimension,
nMaxDimensionNonOutlier);
@@ -370,7 +370,7 @@ static std::vector<long> setButtonSizes(const std::vector<long> &rG,
aI != aEnd; ++aI)
{
long nPrimaryChildDimension = *aI;
- if (nPrimaryChildDimension <= nAvgDimension * 1.5)
+ if (nPrimaryChildDimension < nAvgDimension * 1.5)
aVec.push_back(nMaxNonOutlier);
else
aVec.push_back(nPrimaryChildDimension);