diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-05-25 22:59:54 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-05-25 22:59:54 -0400 |
commit | a49bc3984de28e7c6b671448273e95b1b4d1fb1a (patch) | |
tree | 3d60246e35fb28d2198e909d9cd5a8d2968184dd /pts-core/objects | |
parent | 3ad7358e70ad99cb208e2d9545073e09f416d3fd (diff) | |
download | phoronix-test-suite-upstream-a49bc3984de28e7c6b671448273e95b1b4d1fb1a.tar.gz phoronix-test-suite-upstream-a49bc3984de28e7c6b671448273e95b1b4d1fb1a.tar.xz phoronix-test-suite-upstream-a49bc3984de28e7c6b671448273e95b1b4d1fb1a.zip |
encode-* version bumps and fix for pts_MultiPassFailGraph formatting...
Diffstat (limited to 'pts-core/objects')
-rw-r--r-- | pts-core/objects/pts_MultiPassFailGraph.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pts-core/objects/pts_MultiPassFailGraph.php b/pts-core/objects/pts_MultiPassFailGraph.php index 516840f..c90283d 100644 --- a/pts-core/objects/pts_MultiPassFailGraph.php +++ b/pts-core/objects/pts_MultiPassFailGraph.php @@ -59,7 +59,12 @@ class pts_MultiPassFailGraph extends pts_CustomGraph else $paint_color = $fail_color; - imagefilledrectangle($this->graph_image, $this->graph_left_end - $horizontal_border - ($i * $identifiers_width), $this->graph_top_start + $vertical_border + ($j * $line_height) + $heading_height, $this->graph_left_end - $horizontal_border - (($i + 1) * $identifiers_width), $this->graph_top_start + $vertical_border + (($j + 1) * $line_height) + $heading_height + 1, $paint_color); + $this_bottom_end = $this->graph_top_start + $vertical_border + (($j + 1) * $line_height) + $heading_height + 1; + + if($this_bottom_end >= $this->graph_top_end - $vertical_border) + $this_bottom_end = $this->graph_top_end - $vertical_border - 1; + + imagefilledrectangle($this->graph_image, $this->graph_left_end - $horizontal_border - ($i * $identifiers_width), $this->graph_top_start + $vertical_border + ($j * $line_height) + $heading_height, $this->graph_left_end - $horizontal_border - (($i + 1) * $identifiers_width), $this_bottom_end, $paint_color); $this->gd_write_text_center($results[$i], $this->graph_font_size_bars, $this->graph_color_body_text, $this->graph_left_end - $horizontal_border - ($i * $identifiers_width) - ($identifiers_width / 2), $this->graph_top_start + $vertical_border + ($j * $line_height) + $heading_height + ($line_height / 2) - ($line_ttf_height / 2)); } } |