|
From: Ariel G. <ag...@us...> - 2001-12-06 22:13:39
|
Update of /cvsroot/vagrant/vagrant-2.5
In directory usw-pr-cvs1:/tmp/cvs-serv18416
Modified Files:
Graph.class
Log Message:
label's were checking for if () instead of if (isset()) so that labels that
were 0 evaluated to false instead of true.
Index: Graph.class
===================================================================
RCS file: /cvsroot/vagrant/vagrant-2.5/Graph.class,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Graph.class 2001/12/06 19:39:10 1.10
--- Graph.class 2001/12/06 22:13:37 1.11
***************
*** 189,193 ****
$decimals = max(abs(floor(log10($this->GetValue('x_tick')))), $this->GetValue('grid_precision'));
for ($x_tick = $this->GetValue('x_min'); round($this->GetValue('x_max') - $x_tick, $decimals) >= 0; $x_tick = round($this->GetValue('x_tick') + $x_tick, $decimals)) {
! if ($x_labels["$x_tick"]) {
$label = $x_labels["$x_tick"];
} // if we have a label for this tick
--- 189,193 ----
$decimals = max(abs(floor(log10($this->GetValue('x_tick')))), $this->GetValue('grid_precision'));
for ($x_tick = $this->GetValue('x_min'); round($this->GetValue('x_max') - $x_tick, $decimals) >= 0; $x_tick = round($this->GetValue('x_tick') + $x_tick, $decimals)) {
! if (isset($x_labels["$x_tick"])) {
$label = $x_labels["$x_tick"];
} // if we have a label for this tick
***************
*** 216,220 ****
for ($y_tick = $this->GetValue('y_min'); round($this->GetValue('y_max') - $y_tick,$decimals) >= 0; $y_tick = round($this->GetValue('y_tick') + $y_tick, $decimals)) {
! if ($y_labels["$y_tick"]) {
$label = $y_labels["$y_tick"];
} // if we have a label for this tick
--- 216,220 ----
for ($y_tick = $this->GetValue('y_min'); round($this->GetValue('y_max') - $y_tick,$decimals) >= 0; $y_tick = round($this->GetValue('y_tick') + $y_tick, $decimals)) {
! if (isset($y_labels["$y_tick"])) {
$label = $y_labels["$y_tick"];
} // if we have a label for this tick
***************
*** 232,236 ****
if ($axis2_data) {
! if ($axis2_labels["$axis2_tick"]) {
$label = $axis2_labels["$axis2_tick"];
} // if we have a label for this tick
--- 232,236 ----
if ($axis2_data) {
! if (isset($axis2_labels["$axis2_tick"])) {
$label = $axis2_labels["$axis2_tick"];
} // if we have a label for this tick
|