Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 05/25/2012 08:22 AM, Kohei Yoshida wrote:
Hi Walt,

On Fri, May 25, 2012 at 9:00 AM, walt <w41ter@gmail.com> wrote:

I need to find the code that parses my choice of "Data Ranges" for
the horizontal axis of a stock chart -- and now refuses to let me
do what I've always done -- leave blank space at the right end of
the chart, to allow for fresh samples to be added each day as I get
them.

I assume you are doing this in Calc?  If yes, then the code that
handles data range parsing is actually not in chart2, but in sc.  Go
search for chart2uno.hxx and chart2uno.cxx inside sc, and that's
probably the code you are looking for.

Thank you!  I could never find that code without your help.

I was hoping that my patch (below) would fix my problem while honoring
the spirit of your code, but it turns out to have no effect at all,
either good or bad.

I hope you can see what I was trying to do and explain why it fails.

Keep in mind that I'm not a c(++) programmer, so my error might be as
trivial as incorrect syntax.  (I can't afford the hours it took me to
test the patch, just to experiment with syntax :)

Many thanks!

diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 03028fc..2060b5a 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1426,8 +1426,8 @@ public:
             s.nCol = nMinCol;
         if (s.nRow < nMinRow)
             s.nRow = nMinRow;
-        if (e.nCol > nMaxCol)
-            e.nCol = nMaxCol;
+        if (e.nCol > nMaxCol + 100)
+            e.nCol = nMaxCol + 100;
         if (e.nRow > nMaxRow)
             e.nRow = nMaxRow;
     }





Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.