[chronojump] cairobars jumpSimple takeOff, takeOffWeight show always tc
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] cairobars jumpSimple takeOff, takeOffWeight show always tc
- Date: Tue, 31 Aug 2021 11:45:40 +0000 (UTC)
commit 437bcaab3bddd6ea494d842055b26732d2ccee68
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Aug 31 13:44:57 2021 +0200
cairobars jumpSimple takeOff, takeOffWeight show always tc
src/gui/eventExecute.cs | 4 ++++
src/gui/usefulObjects.cs | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 251959acc..520d5a63a 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -728,6 +728,7 @@ public partial class ChronoJumpWindow
// B) Paint cairo graph
cairoPaintBarsPre.ShowPersonNames = radio_contacts_graph_allPersons.Active;
cairoPaintBarsPre.UseHeights = useHeights;
+
cairoPaintBarsPre.Paint();
}
@@ -3505,6 +3506,9 @@ public class CairoPaintBarsPreJumpSimple : CairoPaintBarsPre
if(showBarA && showBarB)
break;
}
+ //takeOff, takeOff weights show times (Tc)
+ if(showBarA && ! showBarB)
+ UseHeights = false;
CairoBars cbjt;
if(showBarA && showBarB) //Dja, Djna
diff --git a/src/gui/usefulObjects.cs b/src/gui/usefulObjects.cs
index 7c7a2359a..2666d30e2 100644
--- a/src/gui/usefulObjects.cs
+++ b/src/gui/usefulObjects.cs
@@ -79,9 +79,6 @@ public class PrepareEventGraphJumpSimple
public string type; //jumpType (useful to know if "all jumps" (type == "")
public bool djShowHeights; //if djShowHeights and is a dj, graph falling height and jump height
-
- private enum jumpVariables { HEIGHT, TVTC, TC }
-
public PrepareEventGraphJumpSimple() {
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]