[chronojump] textTickPos.ABSOLUTEBOTTOM on absolute bottom (do not respect bottomMargin)



commit e552db8453163ecc082e201e9b5579b34c3abef7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Aug 31 12:54:02 2021 +0200

    textTickPos.ABSOLUTEBOTTOM on absolute bottom (do not respect bottomMargin)

 src/gui/cairo/bars.cs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/cairo/bars.cs b/src/gui/cairo/bars.cs
index e45a4e185..74dc80166 100644
--- a/src/gui/cairo/bars.cs
+++ b/src/gui/cairo/bars.cs
@@ -113,11 +113,11 @@ public abstract class CairoBars : CairoGeneric
                        if(usePersonGuides)
                                xStart += (24 + 6)/2;
 
-                       printText(graphWidth - rightMargin +xStart +12, graphHeight -bottomMargin 
-2*textHeight, 0, textHeight -3,
+                       printText(graphWidth - rightMargin +xStart +12, graphHeight -2*textHeight, 0, 
textHeight -3,
                                        "X", g, alignTypes.CENTER);
 
-                       g.MoveTo(graphWidth - rightMargin +xStart +12 -3, graphHeight -bottomMargin 
-2*textHeight -5);
-                       g.LineTo(graphWidth - rightMargin +xStart +12 +3, graphHeight -bottomMargin 
-2*textHeight -5);
+                       g.MoveTo(graphWidth - rightMargin +xStart +12 -3, graphHeight -2*textHeight -5);
+                       g.LineTo(graphWidth - rightMargin +xStart +12 +3, graphHeight -2*textHeight -5);
                        g.Stroke ();
                }
        }
@@ -207,9 +207,9 @@ public abstract class CairoBars : CairoGeneric
                                        Util.TrimDecimals(avg, 1),
                                        g, alignTypes.CENTER);
                }
-               else //print avg at bottom
+               else //(textTickPos.ABSOLUTEBOTTOM)
                {
-                       printText(graphWidth - rightMargin +xStart +12, graphHeight -bottomMargin 
-textHeight, 0, textHeight -3,
+                       printText(graphWidth - rightMargin +xStart +12, graphHeight -textHeight, 0, 
textHeight -3,
                                        Util.TrimDecimals(avg, 1),
                                        g, alignTypes.CENTER);
                }


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