summaryrefslogtreecommitdiff
path: root/sfx2/source/control/templateviewitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/control/templateviewitem.cxx')
-rw-r--r--sfx2/source/control/templateviewitem.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sfx2/source/control/templateviewitem.cxx b/sfx2/source/control/templateviewitem.cxx
index c2ce8d224447..05b7ebb1f4fd 100644
--- a/sfx2/source/control/templateviewitem.cxx
+++ b/sfx2/source/control/templateviewitem.cxx
@@ -20,7 +20,6 @@
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <vcl/button.hxx>
#include <vcl/graph.hxx>
-#include <svtools/optionsdrawinglayer.hxx>
#define SUBTITLE_SCALE_FACTOR 0.85
@@ -77,11 +76,8 @@ void TemplateViewItem::Paint(drawinglayer::processor2d::BaseProcessor2D *pProces
if ( mbSelected || mbHover )
aFillColor = pAttrs->aHighlightColor;
- if(mbHover)
- {
- const SvtOptionsDrawinglayer aSvtOptionsDrawinglayer;
- fTransparence = aSvtOptionsDrawinglayer.GetTransparentSelectionPercent() * 0.01;
- }
+ if (mbHover)
+ fTransparence = pAttrs->fHighlightTransparence;
aSeq[0] = drawinglayer::primitive2d::Primitive2DReference( new PolyPolygonSelectionPrimitive2D(
B2DPolyPolygon(Polygon(maDrawArea,5,5).getB2DPolygon()),