blind fix for toolkit_unoapi

Change-Id: I545b712c5fb72d8de415752b7fb4ec20ab3fcee0
This commit is contained in:
Noel Power
2012-09-11 17:48:21 +01:00
parent 9639d84bbc
commit a9b9ffacac

View File

@@ -260,6 +260,10 @@ throw(::com::sun::star::uno::RuntimeException)
OutputDevice* pDev = VCLUnoHelper::GetOutputDevice( getGraphics() );
if ( !pDev )
pDev = pWindow->GetParent();
// shouldn't happen but it appears pDev can be NULL
// #FIXME ( find out how/why )
if ( !pDev )
break;
aSize = pDev->LogicToPixel( aSize, aMode );
switch ( nPropType )