From f0b003ff4f66cb17ba997606382dacf39d21a872 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 28 Jul 2023 13:23:05 -0300 Subject: [PATCH] Update SimpleXLSXGen.php --- src/SimpleXLSXGen.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SimpleXLSXGen.php b/src/SimpleXLSXGen.php index 87b8c7d..20b9db9 100644 --- a/src/SimpleXLSXGen.php +++ b/src/SimpleXLSXGen.php @@ -467,10 +467,10 @@ class SimpleXLSXGen ' ' . self::NEWLINE . ' ' . self::NEWLINE . ' ' . self::NEWLINE . - ' '.$col.', 0, '.($row-2).', 0, '.($col+2).', 0, '.($row+1).', 0' . self::NEWLINE . + ' ' . $col . ', 0, ' . $row . ', 0, ' . ($col+2) . ', 0, ' . ($row+3) . ', 0' . self::NEWLINE . ' False' . self::NEWLINE . - ' '.($row-1).'' . self::NEWLINE . - ' '.($col-1).'' . self::NEWLINE . + ' ' . ($row-1) . '' . self::NEWLINE . + ' ' . ($col-1) . '' . self::NEWLINE . ' ' . self::NEWLINE . '' . self::NEWLINE; } @@ -1036,7 +1036,7 @@ class SimpleXLSXGen $COLS[] = ''; $REF = 'A1:' . $this->num2name(count($COL)) . $CUR_ROW; } else { - $ROWS[] = '0'; + $ROWS[] = ''; //'0'; $REF = 'A1:A1'; } @@ -1066,9 +1066,9 @@ class SimpleXLSXGen $COMMENTS = ''; if (count($this->sheets[$idx]['comments'])) { - $this->extLinkId++; - $this->sheets[$idx]['commentDrawingId'] = $this->extLinkId; - $COMMENTS = '' . self::NEWLINE; + $this->extLinkId += 2; //2 links: drawing in sheet?.xml and drawing and comments?.xml in rel file + $this->sheets[$idx]['commentDrawingId'] = $this->extLinkId - 1; + $COMMENTS = '' . self::NEWLINE; } //restore locale