[Libreoffice-commits] core.git: vcl/source
andreas kainz (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 17 20:51:30 UTC 2020
vcl/source/window/splitwin.cxx | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
New commits:
commit b6d2db52ea963615c1323a031694123c9d2a2534
Author: andreas kainz <kainz.a at gmail.com>
AuthorDate: Thu Sep 17 18:35:57 2020 +0200
Commit: Andreas Kainz <kainz.a at gmail.com>
CommitDate: Thu Sep 17 22:50:50 2020 +0200
tdf#133690 Hide surrounding border frame at sidebar
Change-Id: I6daff0ae587232b4b31d02aeb2529eff3fba36a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102967
Tested-by: Jenkins
Reviewed-by: Andreas Kainz <kainz.a at gmail.com>
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 66d64e7fd343..a099ed4b9a03 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -181,10 +181,6 @@ void SplitWindow::ImplDrawBorder(vcl::RenderContext& rRenderContext)
switch (meAlign)
{
case WindowAlign::Bottom:
- rRenderContext.SetLineColor(rStyleSettings.GetShadowColor());
- rRenderContext.DrawLine(Point(0, 0), Point(nDX - 1, 0));
- rRenderContext.DrawLine(Point(0, nDY - 2), Point(nDX - 1, nDY - 2));
-
rRenderContext.SetLineColor(rStyleSettings.GetLightColor());
rRenderContext.DrawLine(Point(0, 1), Point(nDX - 1, 1));
rRenderContext.DrawLine(Point(0, nDY - 1), Point(nDX - 1, nDY - 1));
@@ -211,14 +207,8 @@ void SplitWindow::ImplDrawBorder(vcl::RenderContext& rRenderContext)
break;
default:
rRenderContext.SetLineColor(rStyleSettings.GetShadowColor());
- rRenderContext.DrawLine(Point(0, 0), Point( 0, nDY - 2));
- rRenderContext.DrawLine(Point(0, 0), Point( nDX - 1, 0));
- rRenderContext.DrawLine(Point(0, nDY - 2), Point(nDX - 1, nDY - 2));
-
- rRenderContext.SetLineColor( rStyleSettings.GetLightColor());
- rRenderContext.DrawLine(Point(1, 1), Point(1, nDY - 3));
- rRenderContext.DrawLine(Point(1, 1), Point(nDX - 1, 1));
- rRenderContext.DrawLine(Point(0, nDY - 1), Point(nDX - 1, nDY - 1));
+ rRenderContext.DrawLine(Point(0, 0), Point( 0, nDY));
+ rRenderContext.DrawLine(Point(0, nDY), Point(nDX, nDY));
}
}
@@ -241,11 +231,6 @@ void SplitWindow::ImplDrawBorderLine(vcl::RenderContext& rRenderContext)
rRenderContext.DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN, 1 ), Point( nDX-SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
break;
case WindowAlign::Right:
- rRenderContext.SetLineColor( rStyleSettings.GetShadowColor() );
- rRenderContext.DrawLine( Point( SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( SPLITWIN_SPLITSIZEEXLN-1, nDY-2 ) );
-
- rRenderContext.SetLineColor( rStyleSettings.GetLightColor() );
- rRenderContext.DrawLine( Point( SPLITWIN_SPLITSIZEEXLN, 1 ), Point( SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
break;
case WindowAlign::Top:
rRenderContext.SetLineColor( rStyleSettings.GetShadowColor() );
More information about the Libreoffice-commits
mailing list