During a copy/paste of instrument(s) in Instrument pool (or copy/paste of preset(s) in Preset pool), paste operation fails. For example in swami following critical messages occur.
The bug is inipatch_item_copy_link_func(). This function is called by ipatch_item_duplicate() or ipatch_item_duplicate_link_func(). In the case of ipatch_item_duplicate(), the function is called by ipatch_item_copy() using the class method klass->copy(dest, src, NULL, NULL).
As the method implemented by derived IpatchItem objects (IpatchSF2Inst, IpatchSF2Preset,...) is calling ipatch_item_duplicate_link_func(), that leads to link_func parameter set to NULL which is a valid parameter.
ipatch_item_copy_link_func(), should ignore if link_func parameter is NULL.
During a copy/paste of
instrument(s)
inInstrument pool
(or copy/paste ofpreset(s)
inPreset pool
), paste operation fails. For example in swami following critical messages occur.(swami1.exe:6236): CRITICAL : file ......\libinstpatch-1.0.0\libinstpatch\IpatchItem.c: line 1166: assertion `link_func != NULL' failed
(swami1.exe:6236): CRITICAL : file ......\swami-2.0.0\src\swamigui\SwamiguiTreeStorePatch.c: line 367: assertion `title != NULL' failed.
The bug is in
ipatch_item_copy_link_func()
. This function is called byipatch_item_duplicate()
oripatch_item_duplicate_link_func()
. In the case ofipatch_item_duplicate()
, the function is called byipatch_item_copy()
using the class methodklass->copy(dest, src, NULL, NULL)
. As the method implemented by derived IpatchItem objects (IpatchSF2Inst, IpatchSF2Preset,...) is callingipatch_item_duplicate_link_func()
, that leads tolink_func
parameter set to NULL which is a valid parameter.ipatch_item_copy_link_func(), should ignore if
link_func
parameter is NULL.