diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-06-23 10:29:48 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-06-23 14:30:37 +0000 |
commit | 9a809eedf7327f925cd6be56545b8ed300ef28f4 (patch) | |
tree | 27127b185096162438a20b490b82f16f217ebe50 /desktop/source/deployment/gui | |
parent | fead68bbf107ca9f2632bdaf1d8407921a0320f2 (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 'desktop/source/deployment/gui')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_extlistbox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx index 3989e2d8ae3a..f98de990f11b 100644 --- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx +++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx @@ -758,7 +758,7 @@ void ExtensionBox_Impl::Paint(vcl::RenderContext& rRenderContext, const Rectangl RecalcAll(); Point aStart( 0, -m_nTopIndex ); - Size aSize(rRenderContext.GetOutputSizePixel()); + Size aSize(GetOutputSizePixel()); if ( m_bHasScrollBar ) aSize.Width() -= m_pScrollBar->GetSizePixel().Width(); |