Commit b507ffc0 authored by Claes Sjofors's avatar Claes Sjofors

Ge copy of axis segfaulted

parent 96410d81
......@@ -3058,10 +3058,16 @@ void graph_userdata_copy_cb( void *object, void *old_data, void **new_data,
switch ( utype) {
case glow_eUserdataCbType_NodeClass:
case glow_eUserdataCbType_Node: {
if ( !old_data) {
*new_data = 0;
break;
}
GeDyn *dyn = (GeDyn *)old_data;
GeDyn *new_dyn = new GeDyn( *dyn);
*new_data = (void *) new_dyn;
break;
}
case glow_eUserdataCbType_Ctx:
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment