Kaydet (Commit) 2895b0ef authored tarafından Markus Mohrhard's avatar Markus Mohrhard

complex categories are represented by ScRangeList

Change-Id: I35ab4e8299bb62ec0124a4c45e5cd20be6fc774a
üst 4fc429bf
...@@ -282,10 +282,13 @@ void getChartSourceRanges(ScDocument* pDoc, const SdrMarkList& rObjs, std::vecto ...@@ -282,10 +282,13 @@ void getChartSourceRanges(ScDocument* pDoc, const SdrMarkList& rObjs, std::vecto
std::vector<OUString>::const_iterator it = aRangeReps.begin(), itEnd = aRangeReps.end(); std::vector<OUString>::const_iterator it = aRangeReps.begin(), itEnd = aRangeReps.end();
for (; it != itEnd; ++it) for (; it != itEnd; ++it)
{ {
ScRange aRange; ScRangeList aRange;
ScAddress aAddr; ScAddress aAddr;
if (aRange.Parse(*it, pDoc, pDoc->GetAddressConvention()) & SCA_VALID) 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) else if (aAddr.Parse(*it, pDoc, pDoc->GetAddressConvention()) & SCA_VALID)
rRanges.push_back(aAddr); rRanges.push_back(aAddr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment