summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/ChartController_Properties.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-10-16 13:42:27 +0000
committerBjörn Milcke <bm@openoffice.org>2003-10-16 13:42:27 +0000
commit0571503b747733bc35037d7c9d7ba10b6be8163f (patch)
tree4db8671d9e1cec654b3348667349b1717ed9f4a6 /chart2/source/controller/main/ChartController_Properties.cxx
parent8446c6dc6fd2ef08ffb303cd9474e7d3ecc8c96e (diff)
enable Format/Legend menu
Diffstat (limited to 'chart2/source/controller/main/ChartController_Properties.cxx')
-rw-r--r--chart2/source/controller/main/ChartController_Properties.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/chart2/source/controller/main/ChartController_Properties.cxx b/chart2/source/controller/main/ChartController_Properties.cxx
index 311fce8575e1..38c8e34965d5 100644
--- a/chart2/source/controller/main/ChartController_Properties.cxx
+++ b/chart2/source/controller/main/ChartController_Properties.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ChartController_Properties.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: bm $ $Date: 2003-10-09 16:46:40 $
+ * last change: $Author: bm $ $Date: 2003-10-16 14:42:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -141,8 +141,11 @@ uno::Reference< beans::XPropertySet > getObjectPropertySet( const rtl::OUString&
}
break;
case OBJECTTYPE_LEGEND:
- if( LegendHelper::getIdentifierForLegend().equals( aParticleID ) )
- xObjectProperties.set( LegendHelper::getLegend( xModel ), uno::UNO_QUERY );
+ {
+ uno::Reference< XDiagram > xDia( ChartModelHelper::findDiagram( xModel ) );
+ if( xDia.is())
+ xObjectProperties.set( xDia->getLegend(), uno::UNO_QUERY );
+ }
break;
case OBJECTTYPE_LEGEND_ENTRY:
break;