StatisticsItemConverter.cxx (cde9e8dc) StatisticsItemConverter.cxx (9ec58d04)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 463 unchanged lines hidden (view full) ---

472 if( xErrorBarSource.is() && xDataProvider.is())
473 {
474 ::rtl::OUString aNewRange( static_cast< const SfxStringItem & >( rItemSet.Get( nWhichId )).GetValue());
475 bool bApplyNewRange = false;
476
477 bool bIsPositiveValue( nWhichId == SCHATTR_STAT_RANGE_POS );
478 if( xChartDoc->hasInternalDataProvider())
479 {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 463 unchanged lines hidden (view full) ---

472 if( xErrorBarSource.is() && xDataProvider.is())
473 {
474 ::rtl::OUString aNewRange( static_cast< const SfxStringItem & >( rItemSet.Get( nWhichId )).GetValue());
475 bool bApplyNewRange = false;
476
477 bool bIsPositiveValue( nWhichId == SCHATTR_STAT_RANGE_POS );
478 if( xChartDoc->hasInternalDataProvider())
479 {
480 if( aNewRange.getLength())
480 if( !aNewRange.isEmpty() )
481 {
482 uno::Reference< chart2::data::XDataSequence > xSeq(
483 StatisticsHelper::getErrorDataSequenceFromDataSource(
484 xErrorBarSource, bIsPositiveValue, bYError ));
485 if( ! xSeq.is())
486 {
487 // no data range for error bars yet => create
488 uno::Reference< chart2::XInternalDataProvider > xIntDataProvider( xDataProvider, uno::UNO_QUERY );

--- 205 unchanged lines hidden ---
481 {
482 uno::Reference< chart2::data::XDataSequence > xSeq(
483 StatisticsHelper::getErrorDataSequenceFromDataSource(
484 xErrorBarSource, bIsPositiveValue, bYError ));
485 if( ! xSeq.is())
486 {
487 // no data range for error bars yet => create
488 uno::Reference< chart2::XInternalDataProvider > xIntDataProvider( xDataProvider, uno::UNO_QUERY );

--- 205 unchanged lines hidden ---