From: Hugo Villeneuve Date: Mon, 20 Jan 2014 20:55:22 +0000 (-0500) Subject: Fix stripping of leading zero for text columns (footprint) X-Git-Url: http://gitweb.hugovil.com/?p=eda-utils.git;a=commitdiff_plain;h=bf2460b7a36f1349befaba7bd246424bf853a71b Fix stripping of leading zero for text columns (footprint) --- diff --git a/bomgen/Bomgen/functions.inc.php b/bomgen/Bomgen/functions.inc.php index 1340e11..924374e 100644 --- a/bomgen/Bomgen/functions.inc.php +++ b/bomgen/Bomgen/functions.inc.php @@ -184,7 +184,11 @@ function xls_write_cell_gen($row, $col, $value, $format_texte, $entete, $size, $ $format->setLeft(1); /* Bordure de gauche. */ } - $worksheet->write($row, $col, $value, $format); + if ($format_texte == XLS_FORMAT_TEXT) { + $worksheet->writeString($row, $col, $value, $format); + } else { + $worksheet->write($row, $col, $value, $format); + } } function xls_write_col_header($row, $col, $value)