[chronojump] Contact graphs unicoded ok on windows now



commit a1c9aa645ea0d76a1c965ddbc97b30468e7fb7e7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Apr 4 16:39:17 2014 +0200

    Contact graphs unicoded ok on windows now

 src/stats/main.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/stats/main.cs b/src/stats/main.cs
index f3f3532..fc2bb69 100644
--- a/src/stats/main.cs
+++ b/src/stats/main.cs
@@ -976,7 +976,14 @@ public class Stat
                for(int i=0; i < CurrentGraphData.XAxisNames.Count; i++) {
                        if(! acceptCheckedData(i))
                                continue;
-                       rowNamesD += sep2 + "'" + Util.RemoveTilde(CurrentGraphData.XAxisNames[i].ToString()) 
+ "'";
+                       
+                       string name = Util.RemoveTilde(CurrentGraphData.XAxisNames[i].ToString());      
+                       
+                       //convert accents to Unicode in order to be plotted correctly on R windows
+                       if(UtilAll.IsWindows()) 
+                               name = Util.ConvertToUnicode(name);
+
+                       rowNamesD += sep2 + "'" + name  + "'";
                        sep2 = ", ";
                }
                


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