[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Wed Mar 27 08:27:40 PDT 2013
sc/source/ui/view/drawvie4.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 2895b0ef692d5842636b3b026e76ceb6ac30d088
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Wed Mar 27 16:21:41 2013 +0100
complex categories are represented by ScRangeList
Change-Id: I35ab4e8299bb62ec0124a4c45e5cd20be6fc774a
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index b30d3d1..9e2f38d 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -282,10 +282,13 @@ void getChartSourceRanges(ScDocument* pDoc, const SdrMarkList& rObjs, std::vecto
std::vector<OUString>::const_iterator it = aRangeReps.begin(), itEnd = aRangeReps.end();
for (; it != itEnd; ++it)
{
- ScRange aRange;
+ ScRangeList aRange;
ScAddress aAddr;
if (aRange.Parse(*it, pDoc, pDoc->GetAddressConvention()) & SCA_VALID)
- rRanges.push_back(aRange);
+ {
+ for(size_t i = 0; i < aRange.size(); ++i)
+ rRanges.push_back(*aRange[i]);
+ }
else if (aAddr.Parse(*it, pDoc, pDoc->GetAddressConvention()) & SCA_VALID)
rRanges.push_back(aAddr);
}
More information about the Libreoffice-commits
mailing list