diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-09 21:04:49 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-09 21:04:58 +0100 |
commit | 969336ae6a9023393751b669f8fcd07f0c1d5933 (patch) | |
tree | c0c5825e103c50cdb3475fea161b8707e049eb6e /sd/source/ui | |
parent | 8e36ef28e449de01484695a1594e17f86cd41e85 (diff) |
Remove static if-statement
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx b/sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx index 2198cd382..4984fcd53 100644 --- a/sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx +++ b/sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx @@ -437,8 +437,7 @@ Primitive2DSequence SdPageObjectSelectPrimitive::create2DDecomposition(const dra // add colored PolyPolygon const svtools::ColorConfig aColorConfig; - static bool bTestWithBrightColors(false); - const basegfx::BColor aFrameColor(bTestWithBrightColors ? basegfx::BColor(0,1,0) : Application::GetSettings().GetStyleSettings().GetMenuHighlightColor().getBColor()); + const basegfx::BColor aFrameColor(Application::GetSettings().GetStyleSettings().GetMenuHighlightColor().getBColor()); xRetval[0] = Primitive2DReference( new drawinglayer::primitive2d::PolyPolygonColorPrimitive2D(aFramePolyPolygon, aFrameColor)); @@ -491,9 +490,8 @@ Primitive2DSequence SdPageObjectBorderPrimitive::create2DDecomposition(const dra getPageObjectRange().getMaxX() - aDiscretePixel.getX(), getPageObjectRange().getMaxY() - aDiscretePixel.getY()); // Paint_Border replacement. (use aBorderColor) - static bool bTestWithBrightColors(false); const svtools::ColorConfig aColorConfig; - const basegfx::BColor aBorderColor(bTestWithBrightColors ? basegfx::BColor(1,0,0) : Color(aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor).getBColor()); + const basegfx::BColor aBorderColor(Color(aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor).getBColor()); const Primitive2DReference xReference( new drawinglayer::primitive2d::PolygonHairlinePrimitive2D(basegfx::tools::createPolygonFromRect(aAdaptedInnerRange), aBorderColor)); |