The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix compiler warnings

These changes was commited to the Birdfont repository Sat, 15 Aug 2015 08:00:21 +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>
Sat, 15 Aug 2015 08:00:21 +0000 (10:00 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 15 Aug 2015 08:00:21 +0000 (10:00 +0200)
commit 95650df49d0d83f5371a8c12de9223f1c28160dd
tree 3617aafdd6fbd61225ad59064a78300c7a9d277d
parent 73de020c08ab1eb065dd121f36abc2e67a7138f4
Fix compiler warnings

libbirdfont/StrokeTool.vala
--- a/libbirdfont/StrokeTool.vala +++ b/libbirdfont/StrokeTool.vala @@ -119,7 +119,6 @@ PathList o = new PathList (); PathList r; PathList new_paths = new PathList (); - PathList removed_paths = new PathList (); g.store_undo_state (); @@ -479,7 +478,6 @@ EditPoint modified; i = 0; Intersection new_start = new Intersection.empty (); - EditPoint previous = new EditPoint (); ep1 = current.points.get (i); current = path; @@ -522,8 +520,6 @@ if ((ep1.flags & EditPoint.COPIED) > 0) { merged.close (); - EditPoint first_point = merged.get_first_point (); - EditPointHandle h; merged.get_first_point ().color = Color.green (); merged.get_last_point ().color = Color.brown (); @@ -2162,6 +2158,10 @@ bool merge = false; EditPoint intersection_point, other_intersection_point; bool path1_direction, path2_direction; + + error = false; + merged_paths = new PathList (); + intersections = new IntersectionList (); if (path1.points.size == 0) { return false; @@ -2170,11 +2170,7 @@ if (path2.points.size == 0) { return false; } - - error = false; - merged_paths = new PathList (); - intersections = new IntersectionList (); - + reset_intersections (path1); reset_intersections (path2);