summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-23 20:46:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-23 20:00:00 +0000
commitfff3c9d6e56ae380437333f9c15ff63742904f25 (patch)
tree39ea1db0a008da8424920bcf9233fe8c12000a9c /vcl
parentc571bcd775ebcb3ad69099bdc0c326d28c00c78c (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/salgdilayout.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index 2771c9d61c53..df124a9d8336 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -703,7 +703,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 );