diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-27 16:21:41 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-27 16:25:23 +0100 |
commit | 2895b0ef692d5842636b3b026e76ceb6ac30d088 (patch) | |
tree | 901d9ab290ad77afe5d7d0539aeba107daa7ae0b /sc | |
parent | Remove ResId support for a few dbaui controls (diff) | |
download | core-2895b0ef692d5842636b3b026e76ceb6ac30d088.tar.gz core-2895b0ef692d5842636b3b026e76ceb6ac30d088.zip |
complex categories are represented by ScRangeList
Change-Id: I35ab4e8299bb62ec0124a4c45e5cd20be6fc774a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/drawvie4.cxx | 7 |
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); } |