summaryrefslogtreecommitdiffstats
path: root/svx/source/sdr/overlay/overlayselection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/overlay/overlayselection.cxx')
-rw-r--r--svx/source/sdr/overlay/overlayselection.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/svx/source/sdr/overlay/overlayselection.cxx b/svx/source/sdr/overlay/overlayselection.cxx
index 2411ca3c31b4..b788de195903 100644
--- a/svx/source/sdr/overlay/overlayselection.cxx
+++ b/svx/source/sdr/overlay/overlayselection.cxx
@@ -113,9 +113,16 @@ namespace sdr
if(nCount)
{
// create range primitives
- const basegfx::BColor aRGBColor(getBaseColor().getBColor());
+ const bool bInvert(OVERLAY_INVERT == maLastOverlayType);
+ basegfx::BColor aRGBColor(getBaseColor().getBColor());
aRetval.realloc(nCount);
+ if(bInvert)
+ {
+ // force color to white for invert to get a full invert
+ aRGBColor = basegfx::BColor(1.0, 1.0, 1.0);
+ }
+
for(sal_uInt32 a(0);a < nCount; a++)
{
const basegfx::B2DPolygon aPolygon(basegfx::tools::createPolygonFromRect(maRanges[a]));
@@ -125,7 +132,7 @@ namespace sdr
aRGBColor));
}
- if(OVERLAY_INVERT == maLastOverlayType)
+ if(bInvert)
{
// embed all in invert primitive
const drawinglayer::primitive2d::Primitive2DReference aInvert(