From: Ariel G. <ag...@us...> - 2001-11-28 19:28:43
|
Update of /cvsroot/vagrant/vagrant-2.5 In directory usw-pr-cvs1:/tmp/cvs-serv17249 Modified Files: Graph.class Log Message: fix set min/max in drawgrid if user changed max/min Index: Graph.class =================================================================== RCS file: /cvsroot/vagrant/vagrant-2.5/Graph.class,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Graph.class 2001/11/28 18:40:00 1.1.1.1 --- Graph.class 2001/11/28 19:28:38 1.2 *************** *** 117,124 **** // Now just make sure that the min's and max's line up // ! $this->SetXMin($x_start); ! $this->SetXMax($x_start + $this->GetValue('x_tick') * $this->GetValue('num_x_grid')); ! $this->SetYMin($y_start); ! $this->SetYMax($y_start + $this->GetValue('y_tick') * $this->GetValue('num_y_grid')); // In order to draw everything right, we need to get the sizes of the tick marks before we display them --- 117,135 ---- // Now just make sure that the min's and max's line up // ! if (!$this->IsUserValue('x_min')) { ! $this->SetXMin($x_start); ! } // if this is not a user value ! ! if (!$this->IsUserValue('x_max')) { ! $this->SetXMax($x_start + $this->GetValue('x_tick') * $this->GetValue('num_x_grid')); ! } // if this is not a user value ! ! if (!$this->IsUserValue('y_min')) { ! $this->SetYMin($y_start); ! } // if this is not a user value ! ! if (!$this->IsUserValue('y_max')) { ! $this->SetYMax($y_start + $this->GetValue('y_tick') * $this->GetValue('num_y_grid')); ! } // if this is not a user value // In order to draw everything right, we need to get the sizes of the tick marks before we display them |