diff options
author | Björn Milcke <bm@openoffice.org> | 2003-10-17 13:50:29 +0000 |
---|---|---|
committer | Björn Milcke <bm@openoffice.org> | 2003-10-17 13:50:29 +0000 |
commit | 0b1a461ca52124d962ea9fdd3d0f9f3eb90b4852 (patch) | |
tree | 3199b3132598d4582b663df8709f871ceb179dea /chart2/source/view/main/VLegendSymbolFactory.cxx | |
parent | render PageBackground as shape, the page is not accessible (diff) | |
download | core-0b1a461ca52124d962ea9fdd3d0f9f3eb90b4852.tar.gz core-0b1a461ca52124d962ea9fdd3d0f9f3eb90b4852.zip |
PropertyMapper::setMultiProperties: take a property set rahter than a shape as param
Diffstat (limited to 'chart2/source/view/main/VLegendSymbolFactory.cxx')
-rw-r--r-- | chart2/source/view/main/VLegendSymbolFactory.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/view/main/VLegendSymbolFactory.cxx b/chart2/source/view/main/VLegendSymbolFactory.cxx index 7ec5685032f0..9d83070d89a2 100644 --- a/chart2/source/view/main/VLegendSymbolFactory.cxx +++ b/chart2/source/view/main/VLegendSymbolFactory.cxx @@ -2,9 +2,9 @@ * * $RCSfile: VLegendSymbolFactory.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: bm $ $Date: 2003-10-10 11:41:28 $ + * last change: $Author: bm $ $Date: 2003-10-17 14:50:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -85,7 +85,8 @@ void lcl_setPropetiesToShape( static ::chart::tPropertyNameMap aFilledNameMap( ::chart::PropertyMapper::getPropertyNameMapForFilledSeriesProperties()); static ::chart::tPropertyNameMap aLineNameMap( ::chart::PropertyMapper::getPropertyNameMapForLineSeriesProperties()); - if( xProp.is() && xShape.is() ) + uno::Reference< beans::XPropertySet > xShapeProp( xShape, uno::UNO_QUERY ); + if( xProp.is() && xShapeProp.is() ) { ::chart::tPropertyNameValueMap aValueMap; if( bFilledSeries ) @@ -96,7 +97,7 @@ void lcl_setPropetiesToShape( ::chart::tNameSequence aPropNames; ::chart::tAnySequence aPropValues; ::chart::PropertyMapper::getMultiPropertyListsFromValueMap( aPropNames, aPropValues, aValueMap ); - ::chart::PropertyMapper::setMultiProperties( aPropNames, aPropValues, xShape ); + ::chart::PropertyMapper::setMultiProperties( aPropNames, aPropValues, xShapeProp ); } } |