|
From: <cob...@us...> - 2003-11-11 11:44:16
|
Update of /cvsroot/jrobin/src/org/jrobin/graph
In directory sc8-pr-cvs1:/tmp/cvs-serv6702/src/org/jrobin/graph
Modified Files:
ValueGrid.java
Log Message:
bug fix, zero value range
Index: ValueGrid.java
===================================================================
RCS file: /cvsroot/jrobin/src/org/jrobin/graph/ValueGrid.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ValueGrid.java 7 Nov 2003 09:53:35 -0000 1.2
--- ValueGrid.java 11 Nov 2003 11:44:11 -0000 1.3
***************
*** 119,122 ****
--- 119,125 ----
// Determine nice axis grid
double shifted = Math.abs(upper - lower);
+ if ( shifted == 0 ) // Special case, no 'range' available
+ shifted = upper;
+
double mod = 1.0;
while ( shifted > 10 ) {
|