summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/overlay/overlayobjectcell.cxx27
-rw-r--r--svx/source/table/tablecontroller.cxx5
2 files changed, 8 insertions, 24 deletions
diff --git a/svx/source/sdr/overlay/overlayobjectcell.cxx b/svx/source/sdr/overlay/overlayobjectcell.cxx
index 4596fa9e30dd..934fc1dd4de8 100644
--- a/svx/source/sdr/overlay/overlayobjectcell.cxx
+++ b/svx/source/sdr/overlay/overlayobjectcell.cxx
@@ -34,9 +34,8 @@ namespace sdr
{
namespace overlay
{
- OverlayObjectCell::OverlayObjectCell( CellOverlayType eType, const Color& rColor, const RangeVector& rRects )
+ OverlayObjectCell::OverlayObjectCell( const Color& rColor, const RangeVector& rRects )
: OverlayObject( rColor ),
- mePaintType( eType ),
maRectangles( rRects )
{
// no AA for selection overlays
@@ -70,25 +69,13 @@ namespace sdr
}
- if(mePaintType == CELL_OVERLAY_TRANSPARENT)
- {
- // embed in 50% transparent paint
- const drawinglayer::primitive2d::Primitive2DReference aUnifiedTransparence(
- new drawinglayer::primitive2d::UnifiedTransparencePrimitive2D(
- aRetval,
- 0.5));
+ // embed in 50% transparent paint
+ const drawinglayer::primitive2d::Primitive2DReference aUnifiedTransparence(
+ new drawinglayer::primitive2d::UnifiedTransparencePrimitive2D(
+ aRetval,
+ 0.5));
- aRetval = drawinglayer::primitive2d::Primitive2DContainer { aUnifiedTransparence };
- }
- else // CELL_OVERLAY_INVERT
- {
- // embed in invert primitive
- const drawinglayer::primitive2d::Primitive2DReference aInvert(
- new drawinglayer::primitive2d::InvertPrimitive2D(
- aRetval));
-
- aRetval = drawinglayer::primitive2d::Primitive2DContainer { aInvert };
- }
+ aRetval = drawinglayer::primitive2d::Primitive2DContainer { aUnifiedTransparence };
}
return aRetval;
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index ae8b8482ce9c..f5899a615bc5 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -2141,10 +2141,7 @@ void SvxTableController::updateSelectionOverlay()
rtl::Reference < sdr::overlay::OverlayManager > xOverlayManager = pPaintWindow->GetOverlayManager();
if( xOverlayManager.is() )
{
- // sdr::overlay::CellOverlayType eType = sdr::overlay::CELL_OVERLAY_INVERT;
- sdr::overlay::CellOverlayType eType = sdr::overlay::CELL_OVERLAY_TRANSPARENT;
-
- sdr::overlay::OverlayObjectCell* pOverlay = new sdr::overlay::OverlayObjectCell( eType, aHighlight, aRanges );
+ sdr::overlay::OverlayObjectCell* pOverlay = new sdr::overlay::OverlayObjectCell( aHighlight, aRanges );
xOverlayManager->add(*pOverlay);
mpSelectionOverlay = new sdr::overlay::OverlayObjectList;