summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-08-22 19:56:36 +0200
committerJan Holesovsky <kendy@suse.cz>2012-08-23 17:54:00 +0200
commit0a5b49e7199198974113dc2e8b68257b881fb9fb (patch)
tree32a3add0aa50e1a90303ff791479199a8083b936 /sd
parent682c4f1bf7b6548222321adbee5f64da61ae6685 (diff)
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
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx7
1 files changed, 5 insertions, 2 deletions
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);