From 386cee483d9ebded86068f12fa0edc303cac9758 Mon Sep 17 00:00:00 2001 From: Florian Reuschel Date: Tue, 27 Nov 2018 13:38:42 +0100 Subject: [PATCH] Fix setting draw color (#32) --- src/tFPDF/PDF.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tFPDF/PDF.php b/src/tFPDF/PDF.php index 19e6749..c2eec05 100755 --- a/src/tFPDF/PDF.php +++ b/src/tFPDF/PDF.php @@ -864,16 +864,16 @@ public function SetDrawColor() } switch (count($args)) { case 1: - $this->str_fill_color = sprintf('%.3f G', $args[0] / 100); + $this->str_draw_color = sprintf('%.3f G', $args[0] / 100); break; case 3: - $this->str_fill_color = sprintf('%.3f %.3f %.3f RG', $args[0] / 255, $args[1] / 255, $args[2] / 255); + $this->str_draw_color = sprintf('%.3f %.3f %.3f RG', $args[0] / 255, $args[1] / 255, $args[2] / 255); break; case 4: - $this->str_fill_color = sprintf('%.3f %.3f %.3f %.3f K', $args[0] / 100, $args[1] / 100, $args[2] / 100, $args[3] / 100); + $this->str_draw_color = sprintf('%.3f %.3f %.3f %.3f K', $args[0] / 100, $args[1] / 100, $args[2] / 100, $args[3] / 100); break; default: - $this->str_fill_color = '0 G'; + $this->str_draw_color = '0 G'; } if ($this->int_page > 0) { $this->Out($this->str_draw_color);