Need hint about finding the relevant code in "chart2"

walt w41ter at gmail.com
Sun May 27 08:35:00 PDT 2012


On 05/26/2012 05:21 PM, walt wrote:

> 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.

You bonehead!  You got rows and columns mixed up.  What an idiot.

This patch actually works:

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



More information about the LibreOffice mailing list