diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-27 08:16:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-27 08:16:29 +0200 |
commit | 475cbbb2596117231d36cf8a847b6d342323a3f8 (patch) | |
tree | 7ef97a93c103f5c40e180bced2afc0e8dd8f68be /tools/source/generic | |
parent | cce0620a0669de4c55eb8e02fe16ce139a692228 (diff) |
Remove redundant if (zero is already handled earlier)
Change-Id: Iaab5763d4fbde431bac6f7ecbf4527ad889b6891
Diffstat (limited to 'tools/source/generic')
-rw-r--r-- | tools/source/generic/color.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index 3fb3294ecd89..87185b85ccb1 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -319,13 +319,13 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent) basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor()); double fFactor = 1.0 - (std::abs(double(n100thPercent)) / 10000.0); - double fResult = 0; + double fResult; if (n100thPercent > 0) // tint { fResult = aBColor.getBlue() * fFactor + (1.0 - fFactor); } - else if (n100thPercent < 0) // shade + else // shade { fResult = aBColor.getBlue() * fFactor; } |