diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-06-18 10:25:31 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-06-18 10:27:04 +0200 |
commit | cbe149d66de3050ff3005a5e0b9827f310e5866d (patch) | |
tree | 43b23c8b053d66a3c2138e2f99cf36f040558348 /vcl/source/control/fixed.cxx | |
parent | f2f9c1e09c09eaf03f2625b7d0b9720d0c62b479 (diff) |
rendercontext: Fix rendering of double-buffered fixed line.
Change-Id: I809beb7187530cc30aca5dce8b2d4fb244554c55
Diffstat (limited to 'vcl/source/control/fixed.cxx')
-rw-r--r-- | vcl/source/control/fixed.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx index 214db260083e..303b1652a011 100644 --- a/vcl/source/control/fixed.cxx +++ b/vcl/source/control/fixed.cxx @@ -515,7 +515,10 @@ const Color& FixedLine::GetCanonicalTextColor( const StyleSettings& _rStyle ) co void FixedLine::ImplDraw(vcl::RenderContext& rRenderContext, bool bLayout) { - Size aOutSize = rRenderContext.GetOutputSizePixel(); + // we need to measure according to the window, not according to the + // RenderContext we paint to + Size aOutSize = GetOutputSizePixel(); + OUString aText = GetText(); WinBits nWinStyle = GetStyle(); MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL; |