diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-17 14:36:02 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-23 02:55:32 +0100 |
commit | d2e77741cb8d31e3011893eea3639547204ff3a1 (patch) | |
tree | 7bc243060819ec5cc3537e0f8fb2a5a69d99d340 /chart2/source/controller | |
parent | d02005d6484dc722c6a18b45ff646cb5b6c16553 (diff) |
Set errorbar type attribute when inserting or formating an errorbar.
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/main/ChartController_Insert.cxx | 1 | ||||
-rw-r--r-- | chart2/source/controller/main/ChartController_Properties.cxx | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index c4efa902fd44..f9dc3d81a143 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -502,6 +502,7 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError ) // open dialog SfxItemSet aItemSet = aItemConverter.CreateEmptyItemSet(); + aItemSet.Put(SfxBoolItem(SCHATTR_STAT_ERRORBAR_TYPE,bYError)); aItemConverter.FillItemSet( aItemSet ); ObjectPropertiesDialogParameter aDialogParameter = ObjectPropertiesDialogParameter( ObjectIdentifier::createClassifiedIdentifierWithParent( diff --git a/chart2/source/controller/main/ChartController_Properties.cxx b/chart2/source/controller/main/ChartController_Properties.cxx index bdbe465b1de3..a2a0d92a3f7e 100644 --- a/chart2/source/controller/main/ChartController_Properties.cxx +++ b/chart2/source/controller/main/ChartController_Properties.cxx @@ -774,6 +774,10 @@ bool ChartController::executeDlg_ObjectProperties_withoutUndoGuard( const ::rtl: return bRet; SfxItemSet aItemSet = apItemConverter->CreateEmptyItemSet(); + + if ( eObjectType == OBJECTTYPE_DATA_ERRORS_X || eObjectType == OBJECTTYPE_DATA_ERRORS_Y ) + aItemSet.Put(SfxBoolItem(SCHATTR_STAT_ERRORBAR_TYPE, eObjectType == OBJECTTYPE_DATA_ERRORS_Y )); + apItemConverter->FillItemSet( aItemSet ); //------------------------------------------------------------- |