From 6084a669f2807b8fc8deab7f6480785adf959ec3 Mon Sep 17 00:00:00 2001 From: andrewpthompson Date: Mon, 20 Aug 2018 10:52:34 +0930 Subject: [PATCH] Fix long address lines overflowing label generateLabel() - Width did not take into account paddingLeft --- CRM/Utils/PDF/Label.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/PDF/Label.php b/CRM/Utils/PDF/Label.php index 0f6a613feb..b05b42d064 100644 --- a/CRM/Utils/PDF/Label.php +++ b/CRM/Utils/PDF/Label.php @@ -185,7 +185,7 @@ class CRM_Utils_PDF_Label extends TCPDF { */ public function generateLabel($text) { $args = array( - 'w' => $this->width, + 'w' => $this->width - 2 * $this->paddingLeft, 'h' => 0, 'txt' => $text, 'border' => 0, -- 2.25.1