fix #8056 - more refinements to checking data
[g.raphael] / g.raphael.0.51.js
index 7ae72db..a871140 100644 (file)
@@ -788,7 +788,6 @@ Raphael.g = {
         } else {
             paper = arguments[arguments.length-1] //paper is always last argument
         }
-        
         opts.loffset = (opts.loffset || 0);
         opts.roffset = (opts.roffset || 0);
         
@@ -816,11 +815,6 @@ Raphael.g = {
             rnd = i > 0 ? i : 0;
             dx = length / steps;
         
-        Roo.log('-----------debug---------')
-        Roo.log(x);
-        Roo.log(length);
-        Roo.log(x+length);
-        return;
         
         // left or right
         if (+orientation == 1 || +orientation == 3) {
@@ -850,7 +844,11 @@ Raphael.g = {
                 dx = (length - (opts.loffset + opts.roffset)) / steps,
                 txt = 0,
                 prev = 0;
-
+        
+            if(dx < 1){
+                dx = 1;
+            }
+        
             while (X <= x + length) {
                 Roo.log('label ' + j + ":" + labels[j]);