Author: Carlos Lopez <genet...@gmail.com>
Date:   Mon Jan 23 20:35:31 2012 +0100

Don't pass the grow parameter to exported or imported canvases. It causes 
further problems not solved.

---

 synfig-core/src/synfig/layer_pastecanvas.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/synfig-core/src/synfig/layer_pastecanvas.cpp 
b/synfig-core/src/synfig/layer_pastecanvas.cpp
index 32aee20..f182186 100644
--- a/synfig-core/src/synfig/layer_pastecanvas.cpp
+++ b/synfig-core/src/synfig/layer_pastecanvas.cpp
@@ -341,7 +341,8 @@ Layer_PasteCanvas::set_time(Context context, Time time)const
        if(canvas)
        {
                //synfig::info("passing the grow values og=%f wg=%f", 
outline_grow, width_grow);
-               canvas->get_context().set_context_param("width_grow", 
ValueBase(outline_grow + width_grow));
+               if(canvas->is_inline())
+                       canvas->get_context().set_context_param("width_grow", 
ValueBase(outline_grow + width_grow));
                canvas->set_time(time+time_offset);
                
bounds=(canvas->get_context().get_full_bounding_rect()-focus)*exp(zoom)+origin+focus;
        }


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to