The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 19 May 2015 12:48:59 +0000 (14:48 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 19 May 2015 12:48:59 +0000 (14:48 +0200)
commit 74dee3beebae9497a5410b01600b76530fa80b3a
tree aebfbe5d1989de53710197262b3bda8dee164b0d
parent 5219aa01fc7a1c40b9777fa5518ed6376a75c541
Default grid size

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); }