fix spread leg display_format fn
This commit is contained in:
1 parent
39102af282
commit
eef03b6c20
1 file changed
+1
-1
@@ -140,7 +140,7 @@ namespace bts.api
|
||||
public string separator { get; }
|
||||
public bool add_part(FutureLeg fl, out string result) {
|
||||
if (_first_leg) {
|
||||
if (fl.Item4 > 0) result = fl.Item4 == 1 ? string.Empty : fl.Item3.ToString();
|
||||
if (fl.Item4 > 0) result = fl.Item4 == 1 ? string.Empty : fl.Item4.ToString();
|
||||
else result = fl.Item4 == -1 ? "-" : fl.Item4.ToString("-0");
|
||||
_first_leg = false;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user