Fix #7312 - issue with wide gnumeric / excel sheets
authorAlan <alan@roojs.com>
Fri, 15 Jul 2022 06:13:19 +0000 (14:13 +0800)
committerAlan <alan@roojs.com>
Fri, 15 Jul 2022 06:13:19 +0000 (14:13 +0800)
GnumericToExcel.php
Pman.Gnumeric.js

index 5a23e4a..feb940c 100644 (file)
@@ -30,7 +30,7 @@ class Pman_Core_GnumericToExcel extends Pman
 
     function get($v, $opts=array())
     {
-        
+         
     }
     function post($fname) {
         
index d5cf6b1..a346fba 100644 (file)
@@ -218,7 +218,7 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
         // we wil only support AA not AAA
         var top = Math.floor(c/26);
         var bot = c % 26;
-        var cc = top > 0 ? String.fromCharCode('A'.charCodeAt(0) + top) : '';
+        var cc = top > 0 ? String.fromCharCode('A'.charCodeAt(0) + (top-1)) : '';
         cc += String.fromCharCode('A'.charCodeAt(0)  + bot);
         return cc+'' +r;