changing setFgColor() and setBgColor()'s behaviour to what everyone expects
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@127351 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cc3aa793c6
commit
69aea71adb
|
|
@ -760,6 +760,9 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
|
|||
{
|
||||
$value = $this->_getColor($color);
|
||||
$this->_fg_color = $value;
|
||||
if ($this->_pattern == 0) { // force color to be seen
|
||||
$this->_pattern = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -772,6 +775,9 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
|
|||
{
|
||||
$value = $this->_getColor($color);
|
||||
$this->_bg_color = $value;
|
||||
if ($this->_pattern == 0) { // force color to be seen
|
||||
$this->_pattern = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue