6.0.0-beta1
7/12/25

[#1276] Typos in framework/File_PDF/PDF.php
Summary Typos in framework/File_PDF/PDF.php
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners
Requester olli.korhonen (at) iki (dot) fi
Created 01/28/2005 (7470 days ago)
Due
Updated 11/03/2014 (3904 days ago)
Assigned
Resolved 01/28/2005 (7470 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/28/2005 10:28:17 PM olli (dot) korhonen (at) iki (dot) fi Comment #5 Reply to this comment
Another boring day at work.. :)
01/28/2005 10:21:49 PM Jan Schneider Comment #4 Reply to this comment
And thanks for grepping through the whole code!
01/28/2005 09:04:13 PM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
Also fixed, thanks.
01/28/2005 08:12:00 PM olli (dot) korhonen (at) iki (dot) fi Comment #2
New Attachment: PDF.php.patch Download
Reply to this comment
patch included
01/28/2005 08:11:39 PM olli (dot) korhonen (at) iki (dot) fi Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Typos in framework/File_PDF/PDF.php
Queue ⇒ Horde Framework Packages
Reply to this comment
Typos in framework/File_PDF/PDF.php:



diff -u -3 -p -u -r1.19 PDF.php

--- framework/File_PDF/PDF.php  3 Jan 2005 13:09:04 -0000       1.19

+++ framework/File_PDF/PDF.php  28 Jan 2005 20:10:05 -0000

@@ -956,9 +956,9 @@ class File_PDF {

      function setFillColor($cs = 'rgb', $c1, $c2 = 0, $c3 = 0, $c4 = 0)

      {

          $cs = strtolower($cs);

-        if ($cs = 'rgb') {

+        if ($cs == 'rgb') {

              $this->_fill_color = sprintf('%.3f %.3f %.3f rg', $c1, $c2, $c3);

-        } elseif ($cs = 'cmyk') {

+        } elseif ($cs == 'cmyk') {

              $this->_fill_color = sprintf('%.3f %.3f %.3f %.3f k', 
$c1, $c2, $c3, $c4);

          } else {

              $this->_fill_color = sprintf('%.3f g', $c1);

@@ -997,9 +997,9 @@ class File_PDF {

      function setDrawColor($cs = 'rgb', $c1, $c2 = 0, $c3 = 0, $c4 = 0)

      {

          $cs = strtolower($cs);

-        if ($cs = 'rgb') {

+        if ($cs == 'rgb') {

              $this->_draw_color = sprintf('%.3f %.3f %.3f RG', $c1, $c2, $c3);

-        } elseif ($cs = 'cmyk') {

+        } elseif ($cs == 'cmyk') {

              $this->_draw_color = sprintf('%.3f %.3f %.3f %.3f K', 
$c1, $c2, $c3, $c4);

          } else {

              $this->_draw_color = sprintf('%.3f G', $c1);


Saved Queries