Skip to content

Commit 800dd0f

Browse files
committed
Fix light color theme index overflow caused workbook corrupted
- Fix a regression bug introduced by commit 47b5c30 and 8a99deb - Remove editAs attribute for one cell anchor - Update dependencies modules - Update document for stream writer functions
1 parent 47b5c30 commit 800dd0f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

drawing.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,13 +884,13 @@ func (f *File) drawChartSeriesDPt(i int, opts *Chart) []*cDPt {
884884
W: 25400,
885885
Cap: "rnd",
886886
SolidFill: &aSolidFill{
887-
SchemeClr: &aSchemeClr{Val: "lt" + strconv.Itoa(i+1)},
887+
SchemeClr: &aSchemeClr{Val: "lt1"},
888888
},
889889
},
890890
Sp3D: &aSp3D{
891891
ContourW: 25400,
892892
ContourClr: &aContourClr{
893-
SchemeClr: &aSchemeClr{Val: "lt" + strconv.Itoa(i+1)},
893+
SchemeClr: &aSchemeClr{Val: "lt1"},
894894
},
895895
},
896896
},

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
golang.org/x/crypto v0.46.0
1212
golang.org/x/image v0.25.0
1313
golang.org/x/net v0.48.0
14-
golang.org/x/text v0.32.0
14+
golang.org/x/text v0.33.0
1515
)
1616

1717
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ golang.org/x/image v0.25.0 h1:Y6uW6rH1y5y/LK1J8BPWZtr6yZ7hrsy6hFrXjgsc2fQ=
2020
golang.org/x/image v0.25.0/go.mod h1:tCAmOEGthTtkalusGp1g3xa2gke8J6c2N565dTyl9Rs=
2121
golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
2222
golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
23-
golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
24-
golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
23+
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
24+
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
2525
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
2626
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2727
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

shape.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ func (f *File) cellAnchorShape(sheet, drawingXML, cell string, width, height uin
334334
return content, nil, cNvPrID, err
335335
}
336336
cellAnchor := xdrCellAnchor{}
337-
cellAnchor.EditAs = format.Positioning
338337
from := xlsxFrom{}
339338
from.Col = colStart
340339
from.ColOff = x1 * EMU

stream.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ func (sw *StreamWriter) SetRow(cell string, values []interface{}, opts ...RowOpt
439439
// multiple columns for the StreamWriter. Note that you must call the
440440
// 'SetColVisible' function before the 'SetRow' function.
441441
//
442-
// For example hide column D on Sheet1:
442+
// For example hide column D:
443443
//
444444
// err := sw.SetColVisible(4, 4, false)
445445
//
@@ -461,8 +461,9 @@ func (sw *StreamWriter) SetColVisible(minVal, maxVal int, visible bool) error {
461461
}
462462

463463
// SetColOutlineLevel provides a function to set outline level of a single
464-
// column for the StreamWriter. The value of parameter 'level' is 1-7. For
465-
// example, set outline level of column D in Sheet1 to 2:
464+
// column for the StreamWriter. The value of parameter 'level' is 1-7. Note that
465+
// you must call the 'SetColOutlineLevel' function before the 'SetRow' function.
466+
// For example, set outline level of column D to 2:
466467
//
467468
// err := sw.SetColOutlineLevel(4, 2)
468469
func (sw *StreamWriter) SetColOutlineLevel(col int, level uint8) error {
@@ -482,7 +483,7 @@ func (sw *StreamWriter) SetColOutlineLevel(col int, level uint8) error {
482483
// SetColStyle provides a function to set the style of a single column or
483484
// multiple columns for the StreamWriter. Note that you must call
484485
// the 'SetColStyle' function before the 'SetRow' function. For example set
485-
// style of column H on Sheet1:
486+
// style of column H:
486487
//
487488
// err := sw.SetColStyle(8, 8, style)
488489
func (sw *StreamWriter) SetColStyle(minVal, maxVal, styleID int) error {

0 commit comments

Comments
 (0)