From 09c52ee1abecf26e81e228b6f0283a3dd8ae81ca Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 13 Nov 2008 19:55:08 +0000 Subject: [PATCH] If we draw a polygon under some transform layers, the polygon layer itself (as opposed to any bline layers created simultaneously) is misplaced. This fixes the positioning. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2194 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_polygon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/state_polygon.cpp b/synfig-studio/trunk/src/gtkmm/state_polygon.cpp index 8b17cd0..494928e 100644 --- a/synfig-studio/trunk/src/gtkmm/state_polygon.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_polygon.cpp @@ -500,9 +500,10 @@ StatePolygon_Context::run() int i; for(i=0,iter=polygon_point_list.begin();iter!=polygon_point_list.end();++iter,++i) { + *iter = transform.unperform(*iter); new_list.push_back(*(new BLinePoint)); new_list[i].set_width(1); - new_list[i].set_vertex(transform.unperform(*iter)); + new_list[i].set_vertex(*iter); new_list[i].set_tangent(Point(0,0)); } -- 2.7.4