summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-27 16:21:41 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-27 16:25:23 +0100
commit2895b0ef692d5842636b3b026e76ceb6ac30d088 (patch)
tree901d9ab290ad77afe5d7d0539aeba107daa7ae0b
parent4fc429bf61b43fb78eb17aa63004d8bce6757fd2 (diff)
complex categories are represented by ScRangeList
Change-Id: I35ab4e8299bb62ec0124a4c45e5cd20be6fc774a
-rw-r--r--sc/source/ui/view/drawvie4.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index b30d3d17a6bc..9e2f38d8654e 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);
}