Bugfix: (Shanto) Work item GH-161 - Fix: Hyperlinks break when removing rows

This commit is contained in:
Mark Baker 2013-04-20 11:46:20 +01:00
parent 2d3451d95d
commit e76673bcc0
2 changed files with 4 additions and 1 deletions

View File

@ -274,7 +274,9 @@ class PHPExcel_ReferenceHelper
$pSheet->setComments($aNewComments); // replace the comments array
// Update worksheet: hyperlinks
$aHyperlinkCollection = array_reverse($pSheet->getHyperlinkCollection(), true);
$aHyperlinkCollection = $pNumCols > 0 || $pNumRows > 0 ?
array_reverse($pSheet->getHyperlinkCollection(), true) :
$pSheet->getHyperlinkCollection();
foreach ($aHyperlinkCollection as $key => $value) {
$newReference = $this->updateCellReference($key, $pBefore, $pNumCols, $pNumRows);
if ($key != $newReference) {

View File

@ -57,6 +57,7 @@ Fixed in develop branch for release v1.7.9:
- Bugfix: (ccorliss) Work item GH-105 - Fixed number format fatal error
- Bugfix: (MBaker) - Add DROP TABLE in destructor for SQLite and SQLite3 cache controllers
- Bugfix: (alexgann) Work item GH-154 - Fix merged-cell borders on HTML/PDF output
- Bugfix: (Shanto) Work item GH-161 - Fix: Hyperlinks break when removing rows
--------------------------------------------------------------------------------