vcl/source/gdi/salgdilayout.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit f9410a54f8d01e8eafceb9e2239f339d9bb8f094
Author: Caolán McNamara <caol...@redhat.com>
Date:   Sun Aug 23 20:46:53 2015 +0100

    don't mirror 0, RECT_EMPTY, 0, RECT_EMPTY rectangle
    
    leave it untouched to make gtk3 rtl spin buttons possible
    where the additional mirrorValue contains the region
    of the spinbuttons to render within this rectangle
    
    Change-Id: I2648d98ed36373c95947cc4d78e2e54797f01155
    Reviewed-on: https://gerrit.libreoffice.org/17940
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/17942
    Tested-by: Jenkins <c...@libreoffice.org>

diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index b7ffccf..bd5d8bd 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -728,7 +728,9 @@ bool SalGraphics::DrawNativeControl( ControlType nType, 
ControlPart nPart, const
     if( (m_nLayout & SalLayoutFlags::BiDiRtl) || (pOutDev && 
pOutDev->IsRTLEnabled()) )
     {
         Rectangle rgn( rControlRegion );
-        mirror( rgn, pOutDev );
+        Rectangle aNull;
+        if (rgn != aNull)
+            mirror(rgn, pOutDev);
         std::unique_ptr< ImplControlValue > mirrorValue( aValue.clone());
         mirror( *mirrorValue, pOutDev );
         bool bRet = drawNativeControl( nType, nPart, rgn, nState, 
*mirrorValue, aCaption );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to