The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Store fallback font in database

Changes made to libbirdfont/SpacingData.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/SpacingData.vala +++ libbirdfont/SpacingData.vala @@ -32,13 +32,16 @@ } public Gee.ArrayList<string> get_all_connections (string glyph) { + string t; Gee.ArrayList<string> c = new Gee.ArrayList<string> (); connections.clear (); add_connections (glyph); - foreach (string t in connections) { + for (int i = 0; i < connections.size; i++) { + return_val_if_fail (0 <= i < connections.size, c); + t = connections.get (i); c.add (t.dup ()); }