[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Wed Mar 27 08:33:45 PDT 2013


 sc/source/ui/view/drawvie4.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 34e356157acb91bb3c7aa48154337e4226803a40
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
    Signed-off-by: Michael Meeks <michael.meeks at suse.com>

diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index adf45ee..fb9f275 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -292,10 +292,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