summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/gdi/virdev.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 19dd512859ed..06db00f042c8 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: virdev.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: obo $ $Date: 2006-03-29 11:25:58 $
+ * last change: $Author: vg $ $Date: 2006-05-18 10:09:00 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -92,6 +92,8 @@ void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
if ( !pOutDev )
pOutDev = ImplGetDefaultWindow();
+ if( !pOutDev )
+ return;
SalGraphics* pGraphics;
if ( !pOutDev->mpGraphics )