summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/outdevnative.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/outdevnative.cxx')
-rw-r--r--[-rwxr-xr-x]vcl/source/gdi/outdevnative.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/gdi/outdevnative.cxx b/vcl/source/gdi/outdevnative.cxx
index c31188fc357e..2bdc4f84fb7b 100755..100644
--- a/vcl/source/gdi/outdevnative.cxx
+++ b/vcl/source/gdi/outdevnative.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -214,12 +215,11 @@ static boost::shared_ptr< ImplControlValue > lcl_transformControlValue( const Im
}
break;
default:
- OSL_ENSURE( 0, "unknown ImplControlValue type !" );
+ OSL_FAIL( "unknown ImplControlValue type !" );
break;
}
return aResult;
}
-
sal_Bool OutputDevice::DrawNativeControl( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
@@ -237,7 +237,7 @@ sal_Bool OutputDevice::DrawNativeControl( ControlType nType,
if ( mbInitClipRegion )
ImplInitClipRegion();
- if ( mbOutputClipped )
+ if ( mbOutputClipped || rControlRegion.IsEmpty() )
return sal_True;
if ( mbInitLineColor )
@@ -336,3 +336,4 @@ sal_Bool OutputDevice::GetNativeControlRegion( ControlType nType,
}
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */