fix #8056 - more refinements to checking data
[g.raphael] / g.raphael.0.51.js
index f5b5131..a871140 100644 (file)
@@ -801,7 +801,6 @@ Raphael.g = {
                     ["M", x + .5, y, "l", 0, -length] :
                     ["M", x, y + .5, "l", length, 0],
             ends = this.snapEnds(from, to, steps),
-            
             f = ends.from,
             t = ends.to,
             i = ends.power,
@@ -809,9 +808,7 @@ Raphael.g = {
             txtattr = { font: "11px 'Fontin Sans', Fontin-Sans, sans-serif" },
             text = paper.set(),
             d;
-            Roo.log('running here');
-Roo.log(ends);
-return;
+
         d = (t - f) / steps;
 
         var label = f,
@@ -847,10 +844,17 @@ return;
                 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]);
+                
                 if (typeof(labels[j]) == 'undefined') {
+                    label += d;
+                    X += dx;
                     continue;
                 }
                 // add the line