summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-10-21 07:22:20 +0000
committerBjörn Milcke <bm@openoffice.org>2003-10-21 07:22:20 +0000
commitdd988eb1483b03f4396da034567e1c2132f6fb76 (patch)
treea97ab0b2691cb034c1bbb58c6cee4a7bc687a2cc /chart2
parent955734a18cc83f437c44fbf38846620383009ea0 (diff)
In case there is no legend in isVisible() do not pop up an assertion
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/VLegend.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index 9117445ca3de..15ce88ccdeec 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: VLegend.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: bm $ $Date: 2003-10-20 14:18:18 $
+ * last change: $Author: bm $ $Date: 2003-10-21 08:22:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -527,6 +527,9 @@ void SAL_CALL VLegend::init(
// static
bool VLegend::isVisible( const uno::Reference< chart2::XLegend > & xLegend )
{
+ if( ! xLegend.is())
+ return sal_False;
+
sal_Bool bShow = sal_False;
try
{