X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/aac2613e596527aca4b4b8fc39b227f59966f76c..257f6d7dbd82d87a8c311211559bc637785f7b5c:/lib/MECON/PDF/Separador.php?ds=sidebyside diff --git a/lib/MECON/PDF/Separador.php b/lib/MECON/PDF/Separador.php index 67aeb97..5ca5618 100644 --- a/lib/MECON/PDF/Separador.php +++ b/lib/MECON/PDF/Separador.php @@ -59,7 +59,7 @@ class MECON_PDF_Separador extends MECON_PDF_Contenido { */ function MECON_PDF_Separador($altura = 27, $linea = false) { $this->_alto = $altura; - $this->_linea = $linea; + $this->_linea = $linea; } /** @@ -72,8 +72,10 @@ class MECON_PDF_Separador extends MECON_PDF_Contenido { */ function toPDF(&$MARCO) { if($this->_linea) - $MARCO->addLine(0, $MARCO->espacioDisponible, - $MARCO->getWidth(), $MARCO->espacioDisponible); + $MARCO->addLine(0, + $MARCO->espacioDisponible - $this->_alto/2, + $MARCO->getWidth(), + $MARCO->espacioDisponible - $this->_alto/2); $MARCO->espacioDisponible -= $this->_alto; } }