[chronojump] Fixes to last commit



commit 551c18b93679a3fa1f503a30c523df278854a27b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Aug 24 18:19:44 2021 +0200

    Fixes to last commit

 src/gui/cairo/bars.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/cairo/bars.cs b/src/gui/cairo/bars.cs
index 2a4c235c8..303acc7e2 100644
--- a/src/gui/cairo/bars.cs
+++ b/src/gui/cairo/bars.cs
@@ -250,7 +250,7 @@ public abstract class CairoBars : CairoGeneric
 
                        g.SetFontSize(i);
                        te = g.TextExtents(Util.TrimDecimals(maxLengthNumber, decs));
-                       optimalFontHeight = textHeight;
+                       optimalFontHeight = i;
                }
 
                return optimalFontHeight;
@@ -288,7 +288,7 @@ public abstract class CairoBars : CairoGeneric
                else
                        g.Color = yellow; //to have contrast with the bar
 
-               g.Rectangle(x - te.Width/2, yStart-1, te.Width, te.Height+2);
+               g.Rectangle(x - te.Width/2 -1, yStart-1, te.Width +2, te.Height+2);
                g.Fill();
 
                //write text


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