PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #1754

The freezePanes() function does not work properly

Details

Submitted2004-06-30 16:23 UTC
Fromamarmain at bug-tracker dot com
StatusBogus
PackageSpreadsheet_Excel_Writer
PHP Version4.3.0
OSWindows XP
Roadmaps(Not assigned)

Comments

[2004-06-30 16:23 UTC] amarmain at bug-tracker dot com

Description:
------------
When using freezePanes() function, the line is freezed correctly but appeared twice in Excel (just after the Excel document loading).

Reproduce code:
---------------
I change the freezePanes() code:

function freezePanes($panes)
{
$this->_frozen = 1;
$this->_panes = $panes;
}

Expected result:
----------------
With the following one:

function freezePanes()
{
$_=func_get_args();

# Check for a cell reference in A1 notation and substitute row and column

if (preg_match('/^\D/', $_[0]))
{$_ = $this->_substitute_cellref($_);}

$this->_frozen = 1;
$this->_panes = $_;
}

Actual result:
--------------
The fucntion works correctly and the line is not displayed twice.

[2004-07-17 00:30 UTC] xnoguer at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

Depending on the arguments given, lines can appear twice in the "border" between panes. Check your arguments.