Minor performance tweaks
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64399 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
506eabdbf7
commit
df98faa375
|
@ -701,7 +701,7 @@ class PHPExcel_Cell
|
||||||
$ranges = PHPExcel_Cell::splitRange($cellBlock);
|
$ranges = PHPExcel_Cell::splitRange($cellBlock);
|
||||||
foreach($ranges as $range) {
|
foreach($ranges as $range) {
|
||||||
// Single cell?
|
// Single cell?
|
||||||
if (count($range) == 1) {
|
if (!isset($range[1])) {
|
||||||
$returnValue[] = $range[0];
|
$returnValue[] = $range[0];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -536,8 +536,10 @@ class PHPExcel_ReferenceHelper
|
||||||
if (strpos($pCellRange,':') !== false || strpos($pCellRange, ',') !== false) {
|
if (strpos($pCellRange,':') !== false || strpos($pCellRange, ',') !== false) {
|
||||||
// Update range
|
// Update range
|
||||||
$range = PHPExcel_Cell::splitRange($pCellRange);
|
$range = PHPExcel_Cell::splitRange($pCellRange);
|
||||||
for ($i = 0; $i < count($range); ++$i) {
|
$ic = count($range);
|
||||||
for ($j = 0; $j < count($range[$i]); ++$j) {
|
for ($i = 0; $i < $ic; ++$i) {
|
||||||
|
$jc = count($range[$i]);
|
||||||
|
for ($j = 0; $j < $jc; ++$j) {
|
||||||
$range[$i][$j] = $this->_updateSingleCellReference($range[$i][$j], $pBefore, $pNumCols, $pNumRows);
|
$range[$i][$j] = $this->_updateSingleCellReference($range[$i][$j], $pBefore, $pNumCols, $pNumRows);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue