row_sizes is actually a private attribute
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@156046 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7e0817a0e8
commit
49e93d5232
|
|
@ -438,7 +438,7 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
|
||||||
$this->_password = NULL;
|
$this->_password = NULL;
|
||||||
|
|
||||||
$this->col_sizes = array();
|
$this->col_sizes = array();
|
||||||
$this->row_sizes = array();
|
$this->_row_sizes = array();
|
||||||
|
|
||||||
$this->_zoom = 100;
|
$this->_zoom = 100;
|
||||||
$this->_print_scale = 100;
|
$this->_print_scale = 100;
|
||||||
|
|
@ -2125,8 +2125,8 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
|
||||||
$grbit = 0x0000; // Option flags
|
$grbit = 0x0000; // Option flags
|
||||||
$ixfe = $this->_XF($format); // XF index
|
$ixfe = $this->_XF($format); // XF index
|
||||||
|
|
||||||
// set row_sizes so _sizeRow() can use it
|
// set _row_sizes so _sizeRow() can use it
|
||||||
$this->row_sizes[$row] = $height;
|
$this->_row_sizes[$row] = $height;
|
||||||
|
|
||||||
// Use setRow($row, NULL, $XF) to set XF format without setting height
|
// Use setRow($row, NULL, $XF) to set XF format without setting height
|
||||||
if ($height != NULL) {
|
if ($height != NULL) {
|
||||||
|
|
@ -3280,12 +3280,12 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
|
||||||
function _sizeRow($row)
|
function _sizeRow($row)
|
||||||
{
|
{
|
||||||
// Look up the cell value to see if it has been changed
|
// Look up the cell value to see if it has been changed
|
||||||
if (isset($this->row_sizes[$row])) {
|
if (isset($this->_row_sizes[$row])) {
|
||||||
if ($this->row_sizes[$row] == 0) {
|
if ($this->_row_sizes[$row] == 0) {
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return(floor(4/3 * $this->row_sizes[$row]));
|
return(floor(4/3 * $this->_row_sizes[$row]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue