Bugfix: Work item 15459 - Invalid cell coordinate in Autofilter for Excel2007 Writer

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@69709 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2011-03-03 23:01:31 +00:00
parent cfaa5209f7
commit 09df4fd647
2 changed files with 6 additions and 0 deletions

View File

@ -353,6 +353,11 @@ class PHPExcel_Writer_Excel2007_Workbook extends PHPExcel_Writer_Excel2007_Write
// Create absolute coordinate and write as raw text // Create absolute coordinate and write as raw text
$range = PHPExcel_Cell::splitRange($pSheet->getAutoFilter()); $range = PHPExcel_Cell::splitRange($pSheet->getAutoFilter());
$range = $range[0]; $range = $range[0];
// Strip any worksheet ref so we can make the cell ref absolute
if (strpos($range[0],'!') !== false) {
list($ws,$range[0]) = explode('!',$range[0]);
}
$range[0] = PHPExcel_Cell::absoluteCoordinate($range[0]); $range[0] = PHPExcel_Cell::absoluteCoordinate($range[0]);
$range[1] = PHPExcel_Cell::absoluteCoordinate($range[1]); $range[1] = PHPExcel_Cell::absoluteCoordinate($range[1]);
$range = implode(':', $range); $range = implode(':', $range);

View File

@ -24,6 +24,7 @@
Fixed in SVN: Fixed in SVN:
- Bugfix: (MBaker) Work item 15459 - Invalid cell coordinate in Autofilter for Excel2007 Writer
2011-02)27 (v1.7.6): 2011-02)27 (v1.7.6):