summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-09-11 17:48:21 +0100
committerNoel Power <noel.power@suse.com>2012-09-11 17:48:21 +0100
commita9b9ffacac74310c38f152cb9bcc56fe06b0e1d6 (patch)
tree6d694360668283ea1c18012f38e2284657bd3199 /toolkit
parent9639d84bbc766d07d619df844c9c308013720c76 (diff)
blind fix for toolkit_unoapi
Change-Id: I545b712c5fb72d8de415752b7fb4ec20ab3fcee0
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxcontainer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/source/awt/vclxcontainer.cxx b/toolkit/source/awt/vclxcontainer.cxx
index a15fef2e31da..1afcfabe0fb9 100644
--- a/toolkit/source/awt/vclxcontainer.cxx
+++ b/toolkit/source/awt/vclxcontainer.cxx
@@ -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 )