[Libreoffice-commits] .: sd/source
Thomas Arnhold
tarnhold at kemper.freedesktop.org
Wed Feb 9 12:04:55 PST 2011
sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 969336ae6a9023393751b669f8fcd07f0c1d5933
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Wed Feb 9 21:04:49 2011 +0100
Remove static if-statement
diff --git a/sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx b/sd/source/ui/slidesorter/view/SlsPageObjectViewObjectContact.cxx
index 2198cd3..4984fcd 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));
More information about the Libreoffice-commits
mailing list