diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-07-21 11:04:25 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-07-21 11:04:25 +0000 |
commit | f2e8451853d70dc27ce7593a1096565ea4d3e30a (patch) | |
tree | 080867544b1af4752d874d7e1d2af70f978082df /sc/source/ui/drawfunc/fuins2.cxx | |
parent | 9ff4e053523a4ea287bd04eb1c4bb2fce0a24a6b (diff) |
INTEGRATION: CWS chart29 (1.30.74); FILE MERGED
2008/07/10 11:47:19 iha 1.30.74.2: #i90704# take data from rows if only a single! row is available
2008/07/08 07:38:12 iha 1.30.74.1: #i90704# take data from rows if only a single row is available
Diffstat (limited to 'sc/source/ui/drawfunc/fuins2.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/fuins2.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index 73caace45410..6bc072420150 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fuins2.cxx,v $ - * $Revision: 1.30 $ + * $Revision: 1.31 $ * * This file is part of OpenOffice.org. * @@ -172,6 +172,13 @@ void lcl_ChartInit( const uno::Reference < embed::XEmbeddedObject >& xObj, ScVie aRangeString = aTmpStr; ScChartPositioner aChartPositioner( pScDoc, aRangeListRef ); + const ScChartPositionMap* pPositionMap( aChartPositioner.GetPositionMap() ); + if( pPositionMap ) + { + SCSIZE nRowCount = pPositionMap->GetRowCount(); + if( 1==nRowCount ) + eDataRowSource = chart::ChartDataRowSource_ROWS; + } if ( eDataRowSource == chart::ChartDataRowSource_COLUMNS ) { bHasCategories = aChartPositioner.HasRowHeaders(); |