summaryrefslogtreecommitdiff
path: root/reportdesign
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 /reportdesign
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 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/StartMarker.cxx2
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/StartMarker.cxx b/reportdesign/source/ui/report/StartMarker.cxx
index cba5aae711e3..38326e1c943a 100644
--- a/reportdesign/source/ui/report/StartMarker.cxx
+++ b/reportdesign/source/ui/report/StartMarker.cxx
@@ -106,7 +106,7 @@ sal_Int32 OStartMarker::getMinHeight() const
void OStartMarker::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*rRect*/)
{
- Size aSize = rRenderContext.GetOutputSizePixel();
+ Size aSize(GetOutputSizePixel());
long nSize = aSize.Width();
const long nCornerWidth = long(CORNER_SPACE * double(GetMapMode().GetScaleX()));
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index e6ceac18e7f2..c46d935c0129 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -271,7 +271,7 @@ void OViewsWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rR
rRenderContext.SetFillColor(Application::GetSettings().GetStyleSettings().GetDialogColor());
rRenderContext.SetTextFillColor(Application::GetSettings().GetStyleSettings().GetDialogColor());
- Size aOut = rRenderContext.GetOutputSizePixel();
+ Size aOut(GetOutputSizePixel());
Fraction aStartWidth(long(REPORT_STARTMARKER_WIDTH));
aStartWidth *= rRenderContext.GetMapMode().GetScaleX();