diff options
author | Björn Milcke <bm@openoffice.org> | 2004-01-19 13:41:36 +0000 |
---|---|---|
committer | Björn Milcke <bm@openoffice.org> | 2004-01-19 13:41:36 +0000 |
commit | 209a5cbd8b7184b97fef03c5fe7f0cb0ce73cd9f (patch) | |
tree | bde70f1048129fa1129594e5501cd069e25beb63 /chart2 | |
parent | 525f48e86d57f0947a09ee875cd8a4798566c9e3 (diff) |
check if source and destination are valid
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/DiagramHelper.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chart2/source/tools/DiagramHelper.cxx b/chart2/source/tools/DiagramHelper.cxx index 0e964f1c67b3..5f934aea8008 100644 --- a/chart2/source/tools/DiagramHelper.cxx +++ b/chart2/source/tools/DiagramHelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DiagramHelper.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: bm $ $Date: 2003-11-11 12:19:53 $ + * last change: $Author: bm $ $Date: 2004-01-19 14:41:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,6 +79,10 @@ void DiagramHelper::changeDiagram( const uno::Reference< chart2::XDiagram > & xSource, uno::Reference< chart2::XDiagram > & xDestination ) { + OSL_ASSERT( xSource.is() && xDestination.is()); + if( ! ( xSource.is() && xDestination.is())) + return; + uno::Reference< chart2::XTitled > xSrcTitled( xSource, uno::UNO_QUERY ); uno::Reference< chart2::XTitled > xDestTitled( xDestination, uno::UNO_QUERY ); |