The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Default grid size

These changes was commited to the Birdfont repository Tue, 19 May 2015 12:48:59 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 19 May 2015 12:48:59 +0000]

Updated Files

libbirdfont/MenuTab.vala
--- a/libbirdfont/MenuTab.vala +++ b/libbirdfont/MenuTab.vala @@ -198,7 +198,13 @@ DrawingTools.background_scale.set_value (f.background_scale); DrawingTools.grid_expander.tool.clear (); - + + if (f.grid_width.size == 0) { + f.grid_width.add ("1"); + f.grid_width.add ("2"); + f.grid_width.add ("4"); + } + foreach (string grid in f.grid_width) { DrawingTools.add_new_grid (double.parse (grid), false); }