From aea6c254580b9cd0631630be7fbb18b6c49c48a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 23 Aug 2013 16:24:10 +0100 Subject: [PATCH] Revert changes to discreteshadowprimitive values Change-Id: I69465e1835b69b643de019b046a871a3ddab483f --- drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx b/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx index a325690..2aad8d5 100644 --- a/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx @@ -70,7 +70,7 @@ namespace drawinglayer const sal_Int32 nQuarter((getBitmapEx().GetSizePixel().Width() - 3) >> 2); const_cast< DiscreteShadow* >(this)->maTop = getBitmapEx(); const_cast< DiscreteShadow* >(this)->maTop.Crop( - Rectangle(Point((nQuarter * 2) + 1, 0), Size(1, nQuarter))); + Rectangle(Point((nQuarter * 2) + 1, 0), Size(1, nQuarter + 1))); } return maTop; @@ -96,7 +96,7 @@ namespace drawinglayer const sal_Int32 nQuarter((getBitmapEx().GetSizePixel().Width() - 3) >> 2); const_cast< DiscreteShadow* >(this)->maRight = getBitmapEx(); const_cast< DiscreteShadow* >(this)->maRight.Crop( - Rectangle(Point((nQuarter * 3) + 3, (nQuarter * 2) + 1), Size(nQuarter, 1))); + Rectangle(Point((nQuarter * 3) + 2, (nQuarter * 2) + 1), Size(nQuarter + 1, 1))); } return maRight; @@ -122,7 +122,7 @@ namespace drawinglayer const sal_Int32 nQuarter((getBitmapEx().GetSizePixel().Width() - 3) >> 2); const_cast< DiscreteShadow* >(this)->maBottom = getBitmapEx(); const_cast< DiscreteShadow* >(this)->maBottom.Crop( - Rectangle(Point((nQuarter * 2) + 1, (nQuarter * 3) + 3), Size(1, nQuarter))); + Rectangle(Point((nQuarter * 2) + 2, (nQuarter * 2) + 2), Size(1, nQuarter + 1))); } return maBottom; @@ -148,7 +148,7 @@ namespace drawinglayer const sal_Int32 nQuarter((getBitmapEx().GetSizePixel().Width() - 3) >> 2); const_cast< DiscreteShadow* >(this)->maLeft = getBitmapEx(); const_cast< DiscreteShadow* >(this)->maLeft.Crop( - Rectangle(Point(0, (nQuarter * 2) + 1), Size(nQuarter, 1))); + Rectangle(Point(0, (nQuarter * 2) + 1), Size(nQuarter + 1, 1))); } return maLeft; -- 1.8.3.1