From: dooglus Date: Sat, 16 Feb 2008 18:59:46 +0000 (+0000) Subject: Fix 1894998: Converting the first vertex of a looped bline was causing a crash. ... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ef978cc81d1627bbdef34e96c749bb73f301d288;p=synfig.git Fix 1894998: Converting the first vertex of a looped bline was causing a crash. Thanks to Konstantin Dmitriev for the bug report. git-svn-id: http://svn.voria.com/code@1718 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp index 52a380d..740fee9 100644 --- a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp +++ b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp @@ -1733,7 +1733,7 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handleset_name(guid_string(synfigapp::ValueDesc(value_node,first))+".t1"); //tduck->set_name(strprintf("%x-tangent1",value_node->get_link(first).get())); tduck=add_similar_duck(tduck); - tduck->set_guid(calc_duck_guid(synfigapp::ValueDesc(value_node,i),transform_stack)^GUID::hasher(".t1")); + tduck->set_guid(calc_duck_guid(synfigapp::ValueDesc(value_node,first),transform_stack)^GUID::hasher(".t1")); //add_duck(duck); }