mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 07:16:03 +03:00
Bugfix: Work item 14888 - Simple =IF() formula disappears
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@65353 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
20eec570ff
commit
ad3d9dc853
@ -1296,7 +1296,9 @@ class PHPExcel_Writer_Excel5_Parser
|
||||
{
|
||||
// If it's a string return a string node
|
||||
if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $this->_current_token)) {
|
||||
$result = $this->_createTree(str_replace('""', '"', $this->_current_token), '', '');
|
||||
$tmp = str_replace('""', '"', $this->_current_token);
|
||||
if (($tmp == '"') || ($tmp == '')) $tmp = '""'; // Trap for "" that has been used for an empty string
|
||||
$result = $this->_createTree($tmp, '', '');
|
||||
$this->_advance();
|
||||
return $result;
|
||||
// If it's an error code
|
||||
@ -1568,6 +1570,7 @@ class PHPExcel_Writer_Excel5_Parser
|
||||
if (empty($tree)) { // If it's the first call use _parse_tree
|
||||
$tree = $this->_parse_tree;
|
||||
}
|
||||
|
||||
if (is_array($tree['left'])) {
|
||||
$converted_tree = $this->toReversePolish($tree['left']);
|
||||
$polish .= $converted_tree;
|
||||
|
@ -26,6 +26,7 @@
|
||||
Fixed in SVN:
|
||||
- Feature: (MBaker) Provide option to use PCLZip as an alternative to ZipArchive.
|
||||
This allows the writing of Excel2007 files, even without ZipArchive enabled (it does require zlib), or when php_zip is one of the buggy PHP 5.2.6 or 5.2.8 versions
|
||||
- Bugfix: (MBaker) Work item 14888 - Simple =IF() formula disappears
|
||||
|
||||
|
||||
2010-12-10 (v1.7.5):
|
||||
|
Loading…
Reference in New Issue
Block a user