diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-06-23 10:29:48 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-06-23 10:32:28 +0200 |
commit | 5ca1936975148ae3bdc87edb69f812347f1ecb92 (patch) | |
tree | 408758d75ef07d02ffa9f2781ccb83dd614cf53d /vcl/source/window/dockingarea.cxx | |
parent | 4ec27ad35f00fbf5f5bc903cabe0692dc257f1e2 (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 'vcl/source/window/dockingarea.cxx')
-rw-r--r-- | vcl/source/window/dockingarea.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx index 25519f9bb46f..f60292be9dc0 100644 --- a/vcl/source/window/dockingarea.cxx +++ b/vcl/source/window/dockingarea.cxx @@ -162,7 +162,6 @@ void DockingAreaWindow::ApplySettings(vcl::RenderContext& rRenderContext) void DockingAreaWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle&) { - const StyleSettings rSetting = rRenderContext.GetSettings().GetStyleSettings(); EnableNativeWidget(true); // only required because the toolkit currently switches this flag off @@ -217,7 +216,7 @@ void DockingAreaWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangl else { // create map to find toolbar lines - Size aOutSz = rRenderContext.GetOutputSizePixel(); + Size aOutSz(GetOutputSizePixel()); std::map<int, int> ranges; sal_uInt16 nChildren = GetChildCount(); for (sal_uInt16 n = 0; n < nChildren; n++) |