it seems this is not true in all cases

This commit is contained in:
David Tardon 2012-01-31 10:49:16 +01:00
parent c987912cac
commit 55f00b76a9

View file

@ -48,9 +48,6 @@ using namespace ::com::sun::star::uno;
void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
long nDX, long nDY, sal_uInt16 nBitCount, const SystemGraphicsData *pData )
{
DBG_ASSERT( nBitCount <= 1,
"VirtualDevice::VirtualDevice(): Only 0 or 1 is for BitCount allowed" );
if ( nDX < 1 )
nDX = 1;
@ -138,6 +135,8 @@ VirtualDevice::VirtualDevice( sal_uInt16 nBitCount )
: mpVirDev( NULL ),
meRefDevMode( REFDEV_NONE )
{
SAL_WARN_IF( nBitCount > 1, "vcl.gdi",
"VirtualDevice::VirtualDevice(): Only 0 or 1 is for BitCount allowed" );
OSL_TRACE( "VirtualDevice::VirtualDevice( %hu )", nBitCount );
ImplInitVirDev( Application::GetDefaultDevice(), 1, 1, nBitCount );
@ -149,6 +148,8 @@ VirtualDevice::VirtualDevice( const OutputDevice& rCompDev, sal_uInt16 nBitCount
: mpVirDev( NULL ),
meRefDevMode( REFDEV_NONE )
{
SAL_WARN_IF( nBitCount > 1, "vcl.gdi",
"VirtualDevice::VirtualDevice(): Only 0 or 1 is for BitCount allowed" );
OSL_TRACE( "VirtualDevice::VirtualDevice( %hu )", nBitCount );
ImplInitVirDev( &rCompDev, 1, 1, nBitCount );
@ -160,6 +161,8 @@ VirtualDevice::VirtualDevice( const OutputDevice& rCompDev, sal_uInt16 nBitCount
: mpVirDev( NULL ),
meRefDevMode( REFDEV_NONE )
{
SAL_WARN_IF( nBitCount > 1, "vcl.gdi",
"VirtualDevice::VirtualDevice(): Only 0 or 1 is for BitCount allowed" );
OSL_TRACE( "VirtualDevice::VirtualDevice( %hu )", nBitCount );
ImplInitVirDev( &rCompDev, 1, 1, nBitCount );