Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

ISTEXT() return wrong result if referencing an empty but formatted cell #273

Merged
merged 1 commit into from
Nov 23, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Classes/PHPExcel/Cell.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,12 @@ public function setValueExplicit($pValue = NULL, $pDataType = PHPExcel_Cell_Data
{
// set the value according to data type
switch ($pDataType) {
case PHPExcel_Cell_DataType::TYPE_NULL:
$this->_value = $pValue;
break;
case PHPExcel_Cell_DataType::TYPE_STRING2:
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING;
case PHPExcel_Cell_DataType::TYPE_STRING:
case PHPExcel_Cell_DataType::TYPE_NULL:
case PHPExcel_Cell_DataType::TYPE_INLINE:
$this->_value = PHPExcel_Cell_DataType::checkString($pValue);
break;
Expand Down Expand Up @@ -379,7 +381,7 @@ public function isFormula()
{
return $this->_dataType == PHPExcel_Cell_DataType::TYPE_FORMULA;
}

/**
* Does this cell contain Data validation rules?
*
Expand Down