We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d197c6 commit 677a22dCopy full SHA for 677a22d
picture.go
@@ -250,13 +250,21 @@ func (f *File) addSheetPicture(sheet string, rID int) {
250
// countDrawings provides a function to get drawing files count storage in the
251
// folder xl/drawings.
252
func (f *File) countDrawings() int {
253
- count := 0
+ c1, c2 := 0, 0
254
for k := range f.XLSX {
255
if strings.Contains(k, "xl/drawings/drawing") {
256
- count++
+ c1++
257
}
258
259
- return count
+ for rel := range f.Drawings {
260
+ if strings.Contains(rel, "xl/drawings/drawing") {
261
+ c2++
262
+ }
263
264
+ if c1 < c2 {
265
+ return c2
266
267
+ return c1
268
269
270
// addDrawingPicture provides a function to add picture by given sheet,
0 commit comments