[chronojump] Encoder analyze fixed display of wrong name if groupal graph of 1 person not being currentPerson
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Encoder analyze fixed display of wrong name if groupal graph of 1 person not being currentPerson
- Date: Mon, 14 Dec 2020 13:26:12 +0000 (UTC)
commit 7b9fa73f9032727d3757c5ae0ce73f1d3e9c86b8
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 14 14:25:34 2020 +0100
Encoder analyze fixed display of wrong name if groupal graph of 1 person not being currentPerson
src/gui/app1/encoder.cs | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index 2b1e2b57..cba9fa89 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -2990,6 +2990,7 @@ public partial class ChronoJumpWindow
//see doProcess at encoder/graph.R
string analysisVariables = "none"; //cannot be blank
+ string titleStr = "";
string crossName = "";
if(sendAnalysis == "cross") {
@@ -3220,7 +3221,13 @@ public partial class ChronoJumpWindow
{
foreach(string str in encSelReps.EncoderCompareInter)
if(Util.FetchID(str) == eSQL.personID)
+ {
seriesName = Util.FetchName(str);
+ //to show correctly name of person on title if there
is only one serie (one person)
+ //because if is multiseries it displays correctly the
names as series, but if not, it displayed currentPerson.Name
+ //so just display one person name and if it has only
one serie (one person), name will be ok
+ titleStr = seriesName;
+ }
} else if(radio_encoder_analyze_individual_all_sessions.Active)
{
foreach(string str in encSelReps.EncoderCompareInter) {
@@ -3332,8 +3339,9 @@ public partial class ChronoJumpWindow
ep);
- string titleStr = Util.ChangeSpaceAndMinusForUnderscore(currentPerson.Name);
-
+ if(! radio_encoder_analyze_groupal_current_session.Active)
+ titleStr = Util.ChangeSpaceAndMinusForUnderscore(currentPerson.Name);
+
if(encoderSelectedAnalysis == "neuromuscularProfile")
titleStr = "Neuromuscular Profile" + "-" + titleStr;
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]