From e487f5c11a4b62376015d1e7da27420be0932275 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Thu, 14 Jul 2016 23:05:28 +0100 Subject: [PATCH] Fix for multiple worksheets, all with merge cells, in HTML Writer --- Classes/PHPExcel/Writer/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Writer/HTML.php b/Classes/PHPExcel/Writer/HTML.php index 5dcb998..8fd6255 100644 --- a/Classes/PHPExcel/Writer/HTML.php +++ b/Classes/PHPExcel/Writer/HTML.php @@ -398,7 +398,7 @@ class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_ } // Ensure that Spans have been calculated? - if (!$this->spansAreCalculated) { + if ($this->_sheetIndex !== null || !$this->spansAreCalculated) { $this->calculateSpans(); }