summaryrefslogtreecommitdiff
path: root/chart2/source/view
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-05-15 07:05:20 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-05-15 07:05:20 +0000
commitd440098e9deb5c3b7199d3b2ddae11575cee0371 (patch)
tree812c9cffb4bd4b87adff8599b8136413e5339600 /chart2/source/view
parentefc0bdaf2ad0eb1fcbcc154d056056e3dce0fa85 (diff)
INTEGRATION: CWS chart26_DEV300 (1.39.8.1.6); FILE MERGED
2008/04/15 09:04:54 iha 1.39.8.1.6.1: #88075 wrong percentage display
Diffstat (limited to 'chart2/source/view')
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 5ca156402223..20563455d020 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: VSeriesPlotter.cxx,v $
- * $Revision: 1.42 $
+ * $Revision: 1.43 $
*
* This file is part of OpenOffice.org.
*
@@ -377,14 +377,10 @@ uno::Reference< drawing::XShapes > VSeriesPlotter::getErrorBarsGroupShape( VData
OUString VSeriesPlotter::getLabelTextForValue( VDataSeries& rDataSeries
, sal_Int32 nPointIndex
, double fValue
- , double fSumValue
, bool bAsPercentage )
{
OUString aNumber;
- if( m_pPosHelper->isPercentY() )
- fValue *= fSumValue;
-
if( m_apNumberFormatterWrapper.get())
{
sal_Int32 nNumberFormatKey = 0;
@@ -498,7 +494,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
if(pLabel->ShowNumber)
{
OUString aNumber( this->getLabelTextForValue( rDataSeries
- , nPointIndex, fValue, fSumValue, false /*bAsPercentage*/ ) );
+ , nPointIndex, fValue, false /*bAsPercentage*/ ) );
if( aNumber.getLength() )
{
if(aText.getLength())
@@ -517,7 +513,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
fValue*=-1.0;
OUString aPercentage( this->getLabelTextForValue( rDataSeries
- , nPointIndex, fValue, fSumValue, true /*bAsPercentage*/ ) );
+ , nPointIndex, fValue, true /*bAsPercentage*/ ) );
if( aPercentage.getLength() )
{
if(aText.getLength())