View | Details | Raw Unified | Return to bug 18090
Collapse All | Expand All

(-)Sheet.java (-4 / +27 lines)
Line 1859 Link Here
1859
                if ((ci.getFirstColumn() >= column)
1859
                if ((ci.getFirstColumn() <= column)
1860
--
Line 1898 Link Here
1898
            if ((ci.getFirstColumn() >= column)
1898
            if ((ci.getFirstColumn() <= column)
1899
--
Line 1938 Link Here
1938
                columnSizes.add(k, nci);
1939
                records.add((1 + getDimsLoc() - columnSizes.size()) + k, nci);
1940
                dimsloc++;
1941
            }
1942
            else{
1943
                //split to 3 records
1944
                short lastcolumn = ci.getLastColumn();
1945
                ci.setLastColumn(( short ) (column - 1));
1946
1947
                ColumnInfoRecord nci = ( ColumnInfoRecord ) createColInfo();
1948
                nci.setFirstColumn(column);
1949
                nci.setLastColumn(column);
1950
                nci.setOptions(ci.getOptions());
1951
                nci.setXFIndex(ci.getXFIndex());
1952
                nci.setColumnWidth(width);
1953
                columnSizes.add(k, nci);
1954
                records.add((1 + getDimsLoc() - columnSizes.size()) + k, nci);
1955
                dimsloc++;
1956
1957
                nci = ( ColumnInfoRecord ) createColInfo();
1958
                nci.setFirstColumn((short)(column+1));
1959
                nci.setLastColumn(lastcolumn);
1960
                nci.setOptions(ci.getOptions());
1961
                nci.setXFIndex(ci.getXFIndex());
1962
                nci.setColumnWidth(ci.getColumnWidth());

Return to bug 18090