The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Update boundaries after undo

These changes was commited to the Birdfont repository Tue, 10 Jan 2017 19:06:11 +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, 10 Jan 2017 19:06:11 +0000 (20:06 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 10 Jan 2017 19:06:11 +0000 (20:06 +0100)
commit 0bbb34db276035228cddeca2dd6fb2c10db24e36
tree 5e8b40b14effe7449ffc2185b192eeb7d3d5a21d
parent 80cd1f064f9efa37dafc1116d90af06e0a0c0c48
Update boundaries after undo

libbirdfont/Glyph.vala
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -1813,6 +1813,7 @@ undo_list.remove_at (undo_list.size - 1); DrawingTools.update_layers (); + PenTool.update_selected_points (); clear_active_paths (); @@ -1865,6 +1866,11 @@ clear_active_paths (); foreach (SvgBird.Object p in g.active_paths) { add_active_object (p); + } + + PathList pl = LayerUtils.get_all_paths (layers); + foreach (Path path in pl.paths) { + path.update_region_boundaries (); } redraw_area (0, 0, allocation.width, allocation.height);