Hello, 

has this bug is very annoying and very bad regression, i have take a look to 
it. 

After some tests (see comment in 
http://www.synfig.org/issues/thebuggenie/synfig/issues/516) i have found the 
proper way to fix it : 

in synfig-studio/src/gui/trees/layertreestore.cpp 

void 
LayerTreeStore::get_value_vfunc (const Gtk::TreeModel::iterator& iter, int 
column, Glib::ValueBase& value)const 
{ 
[....] 

etl::handle<Layer_PasteCanvas> paste= 
etl::handle<Layer_PasteCanvas>::cast_dynamic( 
layer->get_parent_paste_canvas_layer() ); 
if(paste) 
{ 
etl::handle<synfig::Canvas> 
sub_canvas=paste->get_param("canvas").get(sub_canvas); 
if(sub_canvas && !sub_canvas->is_inline()) 
{ 
Gtk::TreeRow row=*iter; 
if (*row.parent()) // <----------- here is the fix ! 
{ 
paste = etl::handle<Layer_PasteCanvas>::cast_dynamic( 
Layer::Handle((*row.parent())[model.layer]) ); 
} 
} 
} 
if(paste) 
{ 

[....] 
} 

but stilll, i need help from someone to explain me a point : what for this 
piece of code is useful ? 
because seems that just commenting this part (has i did in comment#4 ) it is 
also functional. 
(any way, testing null pointer is far way cleaner than comment/remove another 
work ;-) 

my best things for you guys. 
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to