[chronojump] Two more fixes
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Two more fixes
- Date: Wed, 25 Aug 2021 00:12:49 +0000 (UTC)
commit 9f6f7b968efca1c0af2ccede6a3d6be1c3f237d9
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Aug 25 02:12:35 2021 +0200
Two more fixes
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 495949f47..504f2533c 100644
--- a/src/gui/cairo/bars.cs
+++ b/src/gui/cairo/bars.cs
@@ -253,6 +253,7 @@ public abstract class CairoBars : CairoGeneric
optimalFontHeight = i;
}
+ g.SetFontSize(textHeight); //return font to its default value
return optimalFontHeight;
}
@@ -400,7 +401,7 @@ public class CairoBars1Series : CairoBars
double barWidth = Convert.ToInt32(.5*distanceBetweenCols);
double barDesplLeft = Convert.ToInt32(.5*barWidth);
- int resultFontHeight = getBarsResultFontHeight (barWidth*1.5);
+ int resultFontHeight = getBarsResultFontHeight (barWidth*2);
for(int i = 0; i < point_l.Count; i ++)
{
@@ -410,7 +411,6 @@ public class CairoBars1Series : CairoBars
double y = calculatePaintY(p.Y);
drawRoundedRectangle (true, x, y, barWidth, graphHeight -y -outerMargins, 4, g,
colorSerieA);
-
plotResultOnBar(x + barWidth/2, y, graphHeight -outerMargins, p.Y, resultFontHeight,
barWidth, -1);
//print the type at bottom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]