[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/source
Caolán McNamara
caolanm at redhat.com
Tue Aug 25 01:10:46 PDT 2015
vcl/source/gdi/salgdilayout.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit f9410a54f8d01e8eafceb9e2239f339d9bb8f094
Author: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-on: https://gerrit.libreoffice.org/17942
Tested-by: Jenkins <ci at 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 );
More information about the Libreoffice-commits
mailing list