From d4956f5b6322aeb5d1010c72431c77c0e03ebc67 Mon Sep 17 00:00:00 2001 From: Mika Tuupola Date: Fri, 6 Oct 2006 07:58:07 +0000 Subject: [PATCH] * Fix bug #1730 Wrong operand class used for A1:A2 # currently works only with ranges such as A1:B5. Not supported is A:B git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@221235 c90b9560-bf6c-de11-be94-00142212c4b1 --- Writer/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Writer/Parser.php b/Writer/Parser.php index a873034..b0710b8 100644 --- a/Writer/Parser.php +++ b/Writer/Parser.php @@ -663,10 +663,10 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR * @access private * @param string $range An Excel range in the A1:A2 or A1..A2 format. */ - function _convertRange2d($range) + function _convertRange2d($range, $class=0) { - $class = 2; // as far as I know, this is magick. + // TODO: possible class value 0,1,2 check Formula.pm // Split the range into 2 cell refs if (preg_match("/^([A-Ia-i]?[A-Za-z])(\d+)\:([A-Ia-i]?[A-Za-z])(\d+)$/", $range)) { list($cell1, $cell2) = split(':', $range);