From 30bb53ebf83520d911106576905ae9f0af093a56 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Fri, 5 Aug 2016 00:22:19 +0100 Subject: [PATCH] Double call of PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::stringFromColumnIndex(0)) resulting in `PHP Warning: A non-numeric value encountered" --- changelog.txt | 6 +++--- src/PhpSpreadsheet/Writer/Excel5.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 2511de98..e4171bde 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,7 +1,7 @@ ************************************************************************************** -* PHPExcel +* PHPSpreadsheet * -* Copyright (c) 2006 - 2014 PHPExcel +* Copyright (c) 2006 PHPOffice * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,7 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * -* @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) +* @copyright Copyright (c) 2006 PHPOffice (https://github.com/PHPOffice/PhpSpreadsheet) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## ************************************************************************************** diff --git a/src/PhpSpreadsheet/Writer/Excel5.php b/src/PhpSpreadsheet/Writer/Excel5.php index 998cb066..adbfaa56 100644 --- a/src/PhpSpreadsheet/Writer/Excel5.php +++ b/src/PhpSpreadsheet/Writer/Excel5.php @@ -371,7 +371,7 @@ class Excel5 extends BaseWriter implements IWriter $spContainer->setOPT(0x03BF, 0x000A0000); // Group Shape -> fPrint // set coordinates and offsets, client anchor - $endCoordinates = \PHPExcel\Cell::stringFromColumnIndex(\PHPExcel\Cell::stringFromColumnIndex($iInc - 1)); + $endCoordinates = \PHPExcel\Cell::stringFromColumnIndex($iInc - 1); $endCoordinates .= $rangeBounds[0][1] + 1; $spContainer->setStartCoordinates($cDrawing);