From: Joe Date: Tue, 24 Jun 2014 07:15:17 +0000 (+0200) Subject: Fixed line overwrite in documents when using rtl language. X-Git-Tag: 2.3-final~128 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ab0766f571a268f5051805c3ba44713c43854904;p=fa-stable.git Fixed line overwrite in documents when using rtl language. --- diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index 5bda35c6..c783c915 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -61,7 +61,10 @@ } $this->LineTo($right, $iline2 ,$right, $iline4); $this->LineTo($this->leftMargin, $iline5 ,$this->leftMargin, $iline7); - $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7); + if ($this->l['a_meta_dir'] == 'rtl') // avoid line overwrite in rtl language + $this->LineTo($this->cols[$cols - 2], $iline5 ,$this->cols[$cols - 2], $iline7); + else + $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7); $this->LineTo($right, $iline5 ,$right, $iline7); // Company Logo