From 0a5b49e7199198974113dc2e8b68257b881fb9fb Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 22 Aug 2012 19:56:36 +0200 Subject: Seemingly off-by-one painting error in Impress' ViewShell. In fact, it is not a off-by-one, just the scrollbars do not align with the splitters; so adjust it to fit better. Change-Id: I062b5da6baf4c20bedbf69301066547dcd1ace20 --- sd/source/ui/view/ViewShellBase.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 3b4114e411b5..6898081f5e55 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -272,7 +272,7 @@ ViewShellBase::ViewShellBase ( mpImpl->mpViewWindow.reset(new FocusForwardingWindow(_pFrame->GetWindow(),*this)); mpImpl->mpViewWindow->SetBackground(Wallpaper()); - _pFrame->GetWindow().SetBackground(Wallpaper()); + _pFrame->GetWindow().SetBackground(Application::GetSettings().GetStyleSettings().GetLightColor()); // Set up the members in the correct order. if (GetViewFrame()->GetObjectShell()->ISA(DrawDocShell)) @@ -1298,9 +1298,12 @@ void ViewShellBase::Implementation::ResizePixel ( Point aViewWindowPosition ( rOrigin.X()+aBaseBorder.Left(), rOrigin.Y()+aBaseBorder.Top()); + + // -1 (below) is there to let one line of _pFrame->GetWindow() visible, + // so that it plays better with the overall look Size aViewWindowSize ( rSize.Width() - aBaseBorder.Left() - aBaseBorder.Right(), - rSize.Height() - aBaseBorder.Top() - aBaseBorder.Bottom()); + rSize.Height() - aBaseBorder.Top() - aBaseBorder.Bottom() - 1); mpViewWindow->SetPosSizePixel(aViewWindowPosition, aViewWindowSize); maClientArea = Rectangle(Point(0,0), aViewWindowSize); -- cgit