summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2010-11-02 14:58:22 +0000
committerpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2010-11-02 14:58:22 +0000
commit198a6baf9a125d3cf6fa7c7a53bcc4aa8a128f18 (patch)
tree6466262d11adb9bf9d095d5bf03fafe03559b4b7
parent52c09d0d24a9d810aaf111b4b9d58447c2ed4629 (diff)
- clear T1_errno before using libt1 functions (cont)PHP5.2
git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/branches/PHP5.2@336 455248ca-bdda-0310-9134-f4ebb693071a
-rw-r--r--php_imlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/php_imlib.c b/php_imlib.c
index d5eb8be..0cc9b09 100644
--- a/php_imlib.c
+++ b/php_imlib.c
@@ -3119,6 +3119,8 @@ PHP_FUNCTION(imlib_psbbox)
#define new_x(a, b) (int) ((a) * cos_a - (b) * sin_a)
#define new_y(a, b) (int) ((a) * sin_a + (b) * cos_a)
+ T1_errno = 0;
+
if (per_char) {
space += T1_GetCharWidth(*f_ind, ' ');
cur_x = cur_y = 0;