Kaydet (Commit) 7dab0e86 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix tests

Change-Id: Ib090d9a6a007a738a0603d1d0a38d5b274feadcc
üst 1c6b94c7
...@@ -151,7 +151,7 @@ sal_Int32 AxisHelper::getExplicitNumberFormatKeyForAxis( ...@@ -151,7 +151,7 @@ sal_Int32 AxisHelper::getExplicitNumberFormatKeyForAxis(
//check whether we have a percent scale -> use percent format //check whether we have a percent scale -> use percent format
if( xNumberFormatsSupplier.is() ) if( xNumberFormatsSupplier.is() )
{ {
ChartModel* pModel = dynamic_cast<ChartModel*>( xNumberFormatsSupplier.get() ); ChartModel* pModel = dynamic_cast<ChartModel*>( xChartDoc.get() );
assert(pModel); assert(pModel);
ScaleData aData = AxisHelper::getDateCheckedScale( xAxis, *pModel ); ScaleData aData = AxisHelper::getDateCheckedScale( xAxis, *pModel );
if( aData.AxisType==AxisType::PERCENT ) if( aData.AxisType==AxisType::PERCENT )
......
...@@ -187,7 +187,7 @@ void ExplicitCategoriesProvider::convertCategoryAnysToText( uno::Sequence< OUStr ...@@ -187,7 +187,7 @@ void ExplicitCategoriesProvider::convertCategoryAnysToText( uno::Sequence< OUStr
{ {
Reference< chart2::XAxis > xAxis( xCooSysModel->getAxisByDimension(0,0) ); Reference< chart2::XAxis > xAxis( xCooSysModel->getAxisByDimension(0,0) );
nAxisNumberFormat = AxisHelper::getExplicitNumberFormatKeyForAxis( nAxisNumberFormat = AxisHelper::getExplicitNumberFormatKeyForAxis(
xAxis, xCooSysModel, rModel.getNumberFormatsSupplier(), false ); xAxis, xCooSysModel, uno::Reference< util::XNumberFormatsSupplier> (static_cast< ::cppu::OWeakObject* >( &rModel ), uno::UNO_QUERY), false );
} }
sal_Int32 nLabelColor; sal_Int32 nLabelColor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment