diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-26 11:15:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-27 13:53:26 +0100 |
commit | fb56de2ef744583a07ec02476fc9bc75c525e863 (patch) | |
tree | 53421afd8d38ae1e4c517aecf7ed695b9214ee5c /svtools | |
parent | e54d65dea830ca33cf88ae53941a83987afbb48a (diff) |
remove unused RulerBorderStyle enum values
Change-Id: I4f10e323293485e7a1969fd4c80873aa05971e6c
Reviewed-on: https://gerrit.libreoffice.org/64084
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ruler.cxx | 17 |
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); } } } |