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:
Xavier Noguer Gallego 2003-05-16 20:38:35 +00:00
parent cc3aa793c6
commit 69aea71adb
1 changed files with 6 additions and 0 deletions

View File

@ -760,6 +760,9 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
{ {
$value = $this->_getColor($color); $value = $this->_getColor($color);
$this->_fg_color = $value; $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); $value = $this->_getColor($color);
$this->_bg_color = $value; $this->_bg_color = $value;
if ($this->_pattern == 0) { // force color to be seen
$this->_pattern = 1;
}
} }
/** /**