[Libreoffice-commits] .: chart2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Aug 24 10:30:01 PDT 2012
chart2/source/tools/DataSourceHelper.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit a581d31b227623e09d2970a91214fda398f98eda
Author: Rafael Dominguez <venccsralph at gmail.com>
Date: Fri Aug 24 12:30:38 2012 -0430
Highlight X errorbars data range when a chart is selected.
Change-Id: I90b4f71fb74da59c6c578ccd0e9b62f14620d4e6
diff --git a/chart2/source/tools/DataSourceHelper.cxx b/chart2/source/tools/DataSourceHelper.cxx
index 151b1b2..cf90548 100644
--- a/chart2/source/tools/DataSourceHelper.cxx
+++ b/chart2/source/tools/DataSourceHelper.cxx
@@ -97,6 +97,18 @@ void lcl_addErrorBarRanges(
lcl_addDataSourceRanges( rOutResult, xErrorBarDataSource );
}
}
+
+ if( ( xSeriesProp->getPropertyValue("ErrorBarX") >>= xErrorBarProp ) && xErrorBarProp.is())
+ {
+ sal_Int32 eStyle = ::com::sun::star::chart::ErrorBarStyle::NONE;
+ if( ( xErrorBarProp->getPropertyValue("ErrorBarStyle") >>= eStyle ) &&
+ eStyle == ::com::sun::star::chart::ErrorBarStyle::FROM_DATA )
+ {
+ uno::Reference< data::XDataSource > xErrorBarDataSource( xErrorBarProp, uno::UNO_QUERY );
+ if( xErrorBarDataSource.is() )
+ lcl_addDataSourceRanges( rOutResult, xErrorBarDataSource );
+ }
+ }
}
catch( const uno::Exception & ex )
{
More information about the Libreoffice-commits
mailing list