From 4914c05ced1218949dbafa6010279f829af8fc93 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Tue, 21 Jun 2016 22:43:01 +1000 Subject: [PATCH] Correct border radius point placement Fixes #1201 --- lib/Cpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cpdf.php b/lib/Cpdf.php index ad2c306c3..5ffc4ab47 100644 --- a/lib/Cpdf.php +++ b/lib/Cpdf.php @@ -3278,7 +3278,7 @@ function clippingRectangleRounded($x1, $y1, $w, $h, $rTL, $rTR, $rBR, $rBL) $this->addContent(sprintf("\n%.3F %.3F m ", $x1, $y1 - $rTL + $h)); // line: bottom edge, left end - $this->addContent(sprintf("\n%.3F %.3F l ", $x1, $y1 - $rBL)); + $this->addContent(sprintf("\n%.3F %.3F l ", $x1, $y1 + $rBL)); // curve: bottom-left corner $this->ellipse($x1 + $rBL, $y1 + $rBL, $rBL, 0, 0, 8, 180, 270, false, false, false, true);