2007-09-16 Albert Lee <
[email protected]>
* SFElast-exit.spec: Add patch3
* SFElynx.spec: Fix LDFLAGS
* patches/last-exit-03-format.diff: Don't crash on "tagged as" search
(http://bugzilla.gnome.org/show_bug.cgi?id=448927)
--- last-exit-5.orig/src/FindStation.cs 2007年 9月 10日 一 22:04:13
+++ last-exit-5/src/FindStation.cs 2007年 9月 10日 一 22:36:53
@@ -461,7 +461,14 @@
NumberFormatInfo match_fmt = new NumberFormatInfo();
match_fmt.NumberDecimalSeparator = ".";
- double match = Double.Parse (get_node_text (t_node, "match"), match_fmt);
+ match_fmt.NumberGroupSeparator = ",";
+ double match = Double.NaN;
+ try {
+ match = Double.Parse (get_node_text (t_node, "match"), match_fmt);
+ }
+ catch (FormatException) {
+ pass;
+ }
Tag t = new Tag (id, name, match);
tags.Add (t);