From 5ca1936975148ae3bdc87edb69f812347f1ecb92 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 23 Jun 2015 10:29:48 +0200 Subject: 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 --- cui/source/tabpages/numfmt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui/source/tabpages/numfmt.cxx') diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index c6413146ce01..e2f83551a9cc 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -148,7 +148,7 @@ void SvxNumberPreview::NotifyChange( const OUString& rPrevStr, void SvxNumberPreview::Paint(vcl::RenderContext& rRenderContext, const Rectangle&) { vcl::Font aDrawFont = rRenderContext.GetFont(); - Size aSzWnd = rRenderContext.GetOutputSizePixel(); + Size aSzWnd(GetOutputSizePixel()); OUString aTmpStr( aPrevStr ); long nLeadSpace = (aSzWnd.Width() - rRenderContext.GetTextWidth(aTmpStr)) / 2; -- cgit alue='distro/capgemini/cg-4.1'>distro/capgemini/cg-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/i18npool/Executable_saxparser.mk
AgeCommit message (Expand)Author