diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-10-10 11:25:42 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-25 13:41:54 +0100 |
commit | e8b967a09003c365c445695a6e3d9c39d048537b (patch) | |
tree | d40e139473b0b45cf4c08561d3c505dcf547d840 /vcl/headless | |
parent | 69e4dd120631b05e7abb2c65f36b71e9424a8a72 (diff) |
headless: add required clip map reset for simpler clipping cases
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 3609bd9665fc..e44240de07c4 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -270,11 +270,10 @@ SvpSalGraphics::ClipUndoHandle SvpSalGraphics::ensureClipFor( const basegfx::B2I bool SvpSalGraphics::setClipRegion( const Region& i_rClip ) { m_aClipRegion = i_rClip; + m_aClipMap.reset(); if( i_rClip.IsEmpty() ) - { - m_aClipMap.reset(); m_bClipSetup = true; - } + else if( i_rClip.GetRectCount() == 1 ) { m_aClipMap.reset(); @@ -285,6 +284,7 @@ bool SvpSalGraphics::setClipRegion( const Region& i_rClip ) } else m_bClipSetup = false; + return true; } @@ -555,7 +555,7 @@ void SvpSalGraphics::copyBits( const SalTwoRect* pPosAry, } void SvpSalGraphics::drawBitmap( const SalTwoRect* pPosAry, - const SalBitmap& rSalBitmap ) + const SalBitmap& rSalBitmap ) { const SvpSalBitmap& rSrc = static_cast<const SvpSalBitmap&>(rSalBitmap); B2IRange aSrcRect( pPosAry->mnSrcX, pPosAry->mnSrcY, |