summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-06-23 10:29:48 +0200
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:51:38 +0200
commitd6615bd592bdfe2095aca77e4d38b2cd6fdd1b0b (patch)
tree08f84f3e6daaf33626c34989bd06caea376377d2 /basctl
parentd672048a4b622ef6f19f6ed02e512dfe3b99cdd3 (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 Reviewed-on: https://gerrit.libreoffice.org/16421 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 459449a5ed5f..830cb2ccae25 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -124,7 +124,7 @@ void lcl_DrawIDEWindowFrame(DockingWindow* pWin, vcl::RenderContext& rRenderCont
if (pWin->IsFloatingMode())
return;
- Size aSz = rRenderContext.GetOutputSizePixel();
+ Size aSz(pWin->GetOutputSizePixel());
const Color aOldLineColor(rRenderContext.GetLineColor());
rRenderContext.SetLineColor(Color(COL_WHITE));
// White line on top