From: Ariel G. <ag...@us...> - 2001-12-04 19:28:25
|
Update of /cvsroot/vagrant/vagrant-2.5 In directory usw-pr-cvs1:/tmp/cvs-serv5448 Modified Files: VAGRANT.imlib.class Log Message: force dash line length to be at least 1 Index: VAGRANT.imlib.class =================================================================== RCS file: /cvsroot/vagrant/vagrant-2.5/VAGRANT.imlib.class,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** VAGRANT.imlib.class 2001/11/28 18:39:59 1.1.1.1 --- VAGRANT.imlib.class 2001/12/04 19:28:22 1.2 *************** *** 97,101 **** // Get the length of the line in pixels // ! $line_length = round(ceil (sqrt(pow(($x2 - $x1),2) + pow(($y2 - $y1),2)) ),2); $cosTheta = ($x2 - $x1) / $line_length; --- 97,101 ---- // Get the length of the line in pixels // ! $line_length = max(round(ceil (sqrt(pow(($x2 - $x1),2) + pow(($y2 - $y1),2)) ),2), 1); $cosTheta = ($x2 - $x1) / $line_length; |