summaryrefslogtreecommitdiff
path: root/svtools/source/control/valueset.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/valueset.cxx')
-rw-r--r--svtools/source/control/valueset.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 4d4e0a8d89bc..54d7e3bbbf02 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -772,13 +772,13 @@ void ValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nIt
const Color& rBack = rWall.GetColor();
if (rBack.IsDark() && ! aDoubleColor.IsBright())
{
- aDoubleColor = Color(COL_WHITE);
- aSingleColor = Color(COL_BLACK);
+ aDoubleColor = COL_WHITE;
+ aSingleColor = COL_BLACK;
}
else if (rBack.IsBright() && ! aDoubleColor.IsDark())
{
- aDoubleColor = Color(COL_BLACK);
- aSingleColor = Color(COL_WHITE);
+ aDoubleColor = COL_BLACK;
+ aSingleColor = COL_WHITE;
}
}
}
@@ -792,7 +792,7 @@ void ValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nIt
if (bDrawSel)
{
- rRenderContext.SetLineColor(mbBlackSel ? Color(COL_BLACK) : aDoubleColor);
+ rRenderContext.SetLineColor(mbBlackSel ? COL_BLACK : aDoubleColor);
rRenderContext.DrawRect(aRect);
}
}
@@ -800,7 +800,7 @@ void ValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nIt
{
if (bDrawSel)
{
- rRenderContext.SetLineColor(mbBlackSel ? Color(COL_BLACK) : aDoubleColor);
+ rRenderContext.SetLineColor(mbBlackSel ? COL_BLACK : aDoubleColor);
rRenderContext.DrawRect(aRect);
}
if (mbDoubleSel)
@@ -835,11 +835,11 @@ void ValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nIt
if (bDrawSel)
{
- rRenderContext.SetLineColor(mbBlackSel ? Color(COL_WHITE) : aSingleColor);
+ rRenderContext.SetLineColor(mbBlackSel ? COL_WHITE : aSingleColor);
}
else
{
- rRenderContext.SetLineColor(Color(COL_LIGHTGRAY));
+ rRenderContext.SetLineColor(COL_LIGHTGRAY);
}
rRenderContext.DrawRect(aRect2);