mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-12-02 02:06:03 +03:00
Minor performance tweak
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62922 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
bd82adc1f3
commit
8c3ce4f938
@ -248,8 +248,7 @@ class PHPExcel_Writer_Excel5_Worksheet extends PHPExcel_Writer_Excel5_BIFFwriter
|
|||||||
$this->_lastColumnIndex = -1;
|
$this->_lastColumnIndex = -1;
|
||||||
|
|
||||||
foreach ($this->_phpSheet->getCellCollection(false) as $cellID) {
|
foreach ($this->_phpSheet->getCellCollection(false) as $cellID) {
|
||||||
preg_match('/^(\w+)(\d+)$/U',$cellID,$matches);
|
list($col,$row) = sscanf($cellID,'%[A-Z]%d');
|
||||||
list(,$col,$row) = $matches;
|
|
||||||
$column = PHPExcel_Cell::columnIndexFromString($col) - 1;
|
$column = PHPExcel_Cell::columnIndexFromString($col) - 1;
|
||||||
|
|
||||||
// Don't break Excel!
|
// Don't break Excel!
|
||||||
|
Loading…
Reference in New Issue
Block a user