From: dooglus Date: Fri, 2 Nov 2007 20:54:11 +0000 (+0000) Subject: Tidying. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4f11adb3f789ae2f2e429a8ac9d2c90630d09622;p=synfig.git Tidying. git-svn-id: http://svn.voria.com/code@1105 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/state_draw.cpp b/synfig-studio/trunk/src/gtkmm/state_draw.cpp index cc9cc1c..58b0778 100644 --- a/synfig-studio/trunk/src/gtkmm/state_draw.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_draw.cpp @@ -1186,8 +1186,8 @@ StateDraw_Context::new_region(std::list bline, synfig::Real */ // Remove duplicate vertices - if(value_prev.get_value_node()==value_desc.get_value_node() - || value_desc.get_value_node()==value_next.get_value_node()) + if(value_prev.get_value_node()==value_desc.get_value_node() || + value_desc.get_value_node()==value_next.get_value_node()) { DEBUGPOINT(); vertex_list.erase(iter); @@ -1202,8 +1202,10 @@ StateDraw_Context::new_region(std::list bline, synfig::Real break; } - if(value_desc.parent_is_value_node() && value_next.parent_is_value_node()) - if(value_desc.get_parent_value_node()==value_next.get_parent_value_node() && (next!=vertex_list.end())) + if(value_desc.parent_is_value_node() && + value_next.parent_is_value_node() && + value_desc.get_parent_value_node() == value_next.get_parent_value_node() && + next != vertex_list.end()) { // Fill in missing vertices if(value_desc.get_index()