fix #8056 - more refinements to checking data
[g.raphael] / g.raphael.0.51.js
index f57770f..a871140 100644 (file)
@@ -815,6 +815,7 @@ Raphael.g = {
             rnd = i > 0 ? i : 0;
             dx = length / steps;
         
+        
         // left or right
         if (+orientation == 1 || +orientation == 3) {
             var Y = y,
@@ -843,8 +844,12 @@ Raphael.g = {
                 dx = (length - (opts.loffset + opts.roffset)) / steps,
                 txt = 0,
                 prev = 0;
-
-            while (X < x + length) {
+        
+            if(dx < 1){
+                dx = 1;
+            }
+        
+            while (X <= x + length) {
                 Roo.log('label ' + j + ":" + labels[j]);
                 
                 if (typeof(labels[j]) == 'undefined') {