summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index fefc971c1077..7baf7ffd1c86 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -725,18 +725,11 @@ void Ruler::ImplDrawBorders(vcl::RenderContext& rRenderContext, long nMin, long
n = n1 + ((n2 - n1) / 2);
rRenderContext.SetLineColor(rStyleSettings.GetShadowColor());
- if (mpData->pBorders[i].nStyle & RulerBorderStyle::Snap)
- ImplVDrawLine(rRenderContext, n, nVirTop, n, nVirBottom);
- else if (mpData->pBorders[i].nStyle & RulerBorderStyle::Margin)
- ImplVDrawLine(rRenderContext, n, nVirTop, n, nVirBottom);
- else
- {
- ImplVDrawLine(rRenderContext, n - 1, nVirTop, n - 1, nVirBottom);
- ImplVDrawLine(rRenderContext, n + 1, nVirTop, n + 1, nVirBottom);
- rRenderContext.SetLineColor();
- rRenderContext.SetFillColor(rStyleSettings.GetWindowColor());
- ImplVDrawRect(rRenderContext, n, nVirTop, n, nVirBottom);
- }
+ ImplVDrawLine(rRenderContext, n - 1, nVirTop, n - 1, nVirBottom);
+ ImplVDrawLine(rRenderContext, n + 1, nVirTop, n + 1, nVirBottom);
+ rRenderContext.SetLineColor();
+ rRenderContext.SetFillColor(rStyleSettings.GetWindowColor());
+ ImplVDrawRect(rRenderContext, n, nVirTop, n, nVirBottom);
}
}
}