]> O.S.I.I.S - jp/crow.git/commitdiff
style key
authorjpbruyere <jp.bruyere@hotmail.com>
Sun, 31 Jul 2016 11:25:05 +0000 (13:25 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Sun, 31 Jul 2016 11:25:05 +0000 (13:25 +0200)
src/StyleReader.cs

index 0c4ce2bc6c9f86db7d5bc4d471ded2f3c92ef2a7..11174e29e811ba640f42f1dcfebee94bb64a24f7 100644 (file)
@@ -35,7 +35,7 @@ namespace Crow
                        : base(assembly.GetManifestResourceStream (resId))
                {
                        Interface iface = Interface.CurrentInterface;
-                       string classNameFromResId = resId.Substring (0, resId.Length - 6);
+                       string styleKey = resId.Substring (0, resId.Length - 6);
                        string token = "";
                        List<string> targetsClasses = new List<string> ();
                        string currentProperty = "";
@@ -62,11 +62,11 @@ namespace Crow
                                                        if (!string.IsNullOrEmpty (token))
                                                                throw new Exception ("Unexpected token '='");
                                                        currentProperty = targetsClasses [0];
-                                                       targetsClasses [0] = classNameFromResId;
+                                                       targetsClasses [0] = styleKey;
                                                }else{
                                                        if (string.IsNullOrEmpty (token))
                                                                throw new Exception ("Unexpected token '='");
-                                                       targetsClasses.Add (classNameFromResId);
+                                                       targetsClasses.Add (styleKey);
                                                        currentProperty = token;
                                                        token = "";
                                                }