cvs: pear /Spreadsheet_Excel_Writer/Writer Parser.php
| From: | Mika Tuupola | Date: | Fri, 06 Oct 2006 07:58:07 +0000 |
| Subject: | cvs: pear /Spreadsheet_Excel_Writer/Writer Parser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42430@lists.php.net to get a copy of this message | ||
tuupola Fri Oct 6 07:58:07 2006 UTC
Modified files:
/pear/Spreadsheet_Excel_Writer/Writer Parser.php
Log:
* Fix bug #1730 Wrong operand class used for A1:A2
# currently works only with ranges such as A1:B5. Not supported is A:B
http://cvs.php.net/viewvc.cgi/pear/Spreadsheet_Excel_Writer/Writer/Parser.php?r1=1.57&r2=1.58&diff_format=u
Index: pear/Spreadsheet_Excel_Writer/Writer/Parser.php
diff -u pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.57
pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.58
--- pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.57 Sat Nov 19 13:35:14 2005
+++ pear/Spreadsheet_Excel_Writer/Writer/Parser.php Fri Oct 6 07:58:07 2006
@@ -663,10 +663,10 @@
* @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);