Blame bugs/resolved/000013.txt

Carlos Lopez ba09c3
Subject: Insert Item smart in Bone Weight Pair List Crash
Carlos Lopez ba09c3
Carlos Lopez ba09c3
Create a Bline, expand a vertex and do right click on the Vertice parameter.
Carlos Lopez ba09c3
Convert it to Bone Influence. Expand the convert type and select the first item
Carlos Lopez ba09c3
of the Bone Weight Pair list. Do right click "Insert Item Smart".
Chris Moore 3ab515
It crashes.
Carlos Lopez ba09c3
Carlos Lopez ba09c3
Console message:
Carlos Lopez ba09c3
synfig(10168) [00:57:16] warning: ValueNode_StaticList::operator()():List type/item type mismatch, throwing away mismatch
Carlos Lopez ba09c3
value.h:246 !'matrix'.same_type_as('bone_weight_pair')
Carlos Lopez ba09c3
ss-debug: value.h:248: const T& synfig::ValueBase::get(const T&) const [with T = synfig::BoneWeightPair]: Assertion `is_valid() && same_type_as(x)' failed
Carlos Lopez ba09c3
Carlos Lopez ba09c3
------------------------------------------------------------------------
Carlos Lopez 5a23ec
It crashes too if you delete item smart
Chris Moore df8212
Chris Moore df8212
------------------------------------------------------------------------
Chris Moore df8212
dooglus, Tue Dec 16 00:13:19 CET 2008
Chris Moore df8212
Chris Moore df8212
'insert' no longer seems to crash.
Chris Moore df8212
'delete' still crashes.
Chris Moore df8212
in valuenode_staticlist.cpp, the "if(get_non_inline_ancestor_canvas())" fails, so this never runs:
Chris Moore df8212
	get_non_inline_ancestor_canvas()->invoke_signal_value_node_child_removed(this,value_node);
Chris Moore df8212
so the param tree isn't redrawn.  it's the same as this bug:
Chris Moore df8212
	https://sourceforge.net/tracker2/?func=detail&aid=1420091&group_id=144022&atid=757416
Chris Moore df8212
Chris Moore df8212
the canvas of the static_list is null.
Chris Moore df8212
cloning (copy/paste) or duplicating the bline layer and doing the delete in the new copy doesn't crash
Chris Moore 7168ec
Chris Moore 7168ec
------------------------------------------------------------------------
Chris Moore 7168ec
dooglus, Tue Dec 16 17:54:34 CET 2008
Chris Moore 7168ec
Chris Moore 7168ec
Fixed.