[PATCH 1/2] remove dead code

Takeshi Abe tabe at fixedpoint.jp
Wed Feb 9 10:10:31 PST 2011


---
 vcl/source/gdi/outdevnative.cxx |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/vcl/source/gdi/outdevnative.cxx b/vcl/source/gdi/outdevnative.cxx
index 746e642..3818951 100644
--- a/vcl/source/gdi/outdevnative.cxx
+++ b/vcl/source/gdi/outdevnative.cxx
@@ -218,20 +218,6 @@ BOOL OutputDevice::DrawNativeControl( ControlType nType,
     if( !lcl_enableNativeWidget( *this ) )
         return FALSE;
 
-    /*
-    if( !IsInPaint() && IsPaintTransparent() )
-    {
-        // only required if called directly (ie, we're not in Paint() ):
-        // force redraw (Paint()) for transparent controls
-        // to trigger a repaint of the background
-        Region aClipRgn( GetClipRegion() );
-        if( !rControlRegion.IsEmpty() )
-            aClipRgn.Intersect( rControlRegion );
-        Invalidate( aClipRgn, INVALIDATE_UPDATE );
-        return TRUE;
-    }
-    */
-
     // make sure the current clip region is initialized correctly
     if ( !mpGraphics )
         if ( !ImplGetGraphics() )
-- 
1.7.2.3


----Next_Part(Thu_Feb_10_03_15_24_2011_105)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: 0002-fix-memleak.patch
Content-Disposition: inline; filename="0002-fix-memleak.patch"



More information about the LibreOffice mailing list