From e71ce23b1db9179b226ae4a9043855238ea10666 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 21 Jul 2026 15:48:57 +0000 Subject: [PATCH] Fix method typo in gd_image.inc.php debug path The debug-only bounding-box call used $this->getimagettfbbox_fixed(), which is not a method - the correct name is imagettfbbox_fixed (as used elsewhere in this class and defined at the top of the Image class). With text wrapping and debug enabled it would fatal with 'call to undefined method'. Correct the name. --- lib/jpgraph/src/gd_image.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jpgraph/src/gd_image.inc.php b/lib/jpgraph/src/gd_image.inc.php index 3661961..e875d80 100755 --- a/lib/jpgraph/src/gd_image.inc.php +++ b/lib/jpgraph/src/gd_image.inc.php @@ -1050,7 +1050,7 @@ function _StrokeTTF($x,$y,$txt,$dir,$paragraph_align,&$aBoundingBox,$debug=false // echo "xl=$xl,".$tmp[$i]."
"; if( $debug ) { // Draw the bounding rectangle around each line - $box = $this->getimagettfbbox_fixed($this->font_size,$dir,$this->font_file,$tmp[$i]); + $box = $this->imagettfbbox_fixed($this->font_size,$dir,$this->font_file,$tmp[$i]); $p = array(); for($j=0; $j < 4; ++$j) { $p[] = $bbox[$j*2]+$xl;