[chronojump] JumpsDjOptimalFall: better grid



commit 05d281910d9eb8d12b6b23b96d82da0f946398c5
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Dec 27 16:10:33 2019 +0100

    JumpsDjOptimalFall: better grid

 src/gui/jumpsDjOptimalFall.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/jumpsDjOptimalFall.cs b/src/gui/jumpsDjOptimalFall.cs
index 671b5441..25726bcb 100644
--- a/src/gui/jumpsDjOptimalFall.cs
+++ b/src/gui/jumpsDjOptimalFall.cs
@@ -363,7 +363,7 @@ public class JumpsDjOptimalFallGraph
                                printText(Convert.ToInt32(outerMargins/2), ytemp, 0, textHeight, 
Convert.ToInt32(i).ToString(), g, true);
                        } else {
                                int xtemp = Convert.ToInt32(calculatePaintX(i, graphWidth, max, min, 
outerMargins + innerMargins, outerMargins + innerMargins));
-                               if(xtemp > graphWidth)
+                               if(xtemp > graphWidth - outerMargins)
                                        continue;
                                g.MoveTo(xtemp, graphHeight - outerMargins);
                                g.LineTo(xtemp, outerMargins);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]