diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-04-12 17:35:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-04-12 17:35:02 +0100 |
| commit | 86346ad4f67810e1dadad5d22fbc676b02c7faa7 (patch) | |
| tree | d9cce4173fd6100d9d0266ce611bb0ad713b0a72 | |
| parent | 3ff8c72499f32769969fc6bd77322e7c84264d7f (diff) | |
Hand-apply c165ea8ccadf5bb8c4401a23bb2e998fabdc8a9b from master.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | src/lib/ratio.cc | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2015-04-12 Carl Hetherington <cth@carlh.net> + * Hand-apply 69866d9ba972d21375081c313ac245535ac55be9 from master; + handle removed ratio if it occurs in old files. + * Hand-apply c0e0b90d987af2586323d4a67bd67330256da51d from master; remove 1.37 ratio and set Academy to 1.375. diff --git a/src/lib/ratio.cc b/src/lib/ratio.cc index e9b57e2e1..6edd154e0 100644 --- a/src/lib/ratio.cc +++ b/src/lib/ratio.cc @@ -45,6 +45,11 @@ Ratio::setup_ratios () Ratio const * Ratio::from_id (string i) { + /* We removed the ratio with id 137; replace it with 138 */ + if (i == "137") { + i = "138"; + } + vector<Ratio const *>::iterator j = _ratios.begin (); while (j != _ratios.end() && (*j)->id() != i) { ++j; |
