The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Use SVG transform, parse opacity and gradients

Changes made to libbirdfont/Doubles.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/Doubles.vala +++ libbirdfont/Doubles.vala @@ -47,9 +47,23 @@ data[size] = d; size++; + } + + public double get_double (int index) { + if (unlikely (index < 0)) { + warning ("index < 0"); + return 0; + } + + if (unlikely (index >= size)) { + warning ("index >= size"); + return 0; + } + + return data[index]; } } }