diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:21:01 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:21:01 +0000 |
commit | 0d24eeba451316ad1879a355b82a2c66db14eb1f (patch) | |
tree | c707acd6f47b0b8535c23141181562af97900fbd /vcl/source | |
parent | ffddeeb19c2f2773c3f6fa3401e75cdecf3fe8c5 (diff) |
INTEGRATION: CWS vcl41 (1.47.90); FILE MERGED
2005/06/20 09:57:04 ssa 1.47.90.1: #120759# check for mpInfoPrinter before using it
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/print.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index d3dd6888aca5..dc8f39ba3050 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -2,9 +2,9 @@ * * $RCSfile: print.cxx,v $ * - * $Revision: 1.48 $ + * $Revision: 1.49 $ * - * last change: $Author: kz $ $Date: 2005-07-01 13:07:23 $ + * last change: $Author: obo $ $Date: 2005-07-06 09:21:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -764,7 +764,10 @@ ULONG Printer::GetCapabilities( USHORT nType ) const if ( IsDisplayPrinter() ) return FALSE; - return mpInfoPrinter->GetCapabilities( maJobSetup.ImplGetConstData(), nType ); + if( mpInfoPrinter ) + return mpInfoPrinter->GetCapabilities( maJobSetup.ImplGetConstData(), nType ); + else + return FALSE; } // ----------------------------------------------------------------------- |