summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/titledockwin.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-06-23 10:29:48 +0200
committerJan Holesovsky <kendy@collabora.com>2015-06-23 10:32:28 +0200
commit5ca1936975148ae3bdc87edb69f812347f1ecb92 (patch)
tree408758d75ef07d02ffa9f2781ccb83dd614cf53d /sfx2/source/dialog/titledockwin.cxx
parent4ec27ad35f00fbf5f5bc903cabe0692dc257f1e2 (diff)
rendercontext: Mass fix of using the wrong size.
In the paints, we must use the size of the Window for the computations, not of the RenderContext - the RenderContext can be much bigger than the Window in the double-buffering case. Fixes for example the list boxes, and many others. Change-Id: I4c7607569f88b2d097587140858d0862e54b5ea6
Diffstat (limited to 'sfx2/source/dialog/titledockwin.cxx')
-rw-r--r--sfx2/source/dialog/titledockwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx
index a80d77d6c1c0..b5e9067ad3ea 100644
--- a/sfx2/source/dialog/titledockwin.cxx
+++ b/sfx2/source/dialog/titledockwin.cxx
@@ -172,7 +172,7 @@ namespace sfx2
rRenderContext.SetFont(aFont);
// Set border values.
- Size aWindowSize(rRenderContext.GetOutputSizePixel());
+ Size aWindowSize(GetOutputSizePixel());
int nOuterLeft = 0;
int nInnerLeft = nOuterLeft + m_aBorder.Left() - 1;
int nOuterRight = aWindowSize.Width() - 1;