vcl/source/control/fixed.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit cbe149d66de3050ff3005a5e0b9827f310e5866d
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Thu Jun 18 10:25:31 2015 +0200

    rendercontext: Fix rendering of double-buffered fixed line.
    
    Change-Id: I809beb7187530cc30aca5dce8b2d4fb244554c55

diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 214db26..303b165 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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to