From 969336ae6a9023393751b669f8fcd07f0c1d5933 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Wed, 9 Feb 2011 21:04:49 +0100 Subject: Remove static if-statement --- sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sd/source/ui') 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)); -- cgit v1.2.3