static ObjectChange* textobj_move_handle(Textobj *textobj, Handle *handle, Point *to, ConnectionPoint *cp, HandleMoveReason reason, ModifierKeys modifiers) { assert(textobj!=NULL); assert(handle!=NULL); assert(to!=NULL); if (handle->id == HANDLE_TEXT) { textobj_move(textobj, to); } return NULL; }
static ObjectChange* textobj_move_handle(Textobj *textobj, Handle *handle, Point *to, ConnectionPoint *cp, HandleMoveReason reason, ModifierKeys modifiers) { assert(textobj!=NULL); assert(handle!=NULL); assert(to!=NULL); if (handle->id == HANDLE_TEXT) { /*Point to2 = *to; point_add(&to2,&textobj->text->position); point_sub(&to2,&textobj->text_handle.pos); textobj_move(textobj, &to2);*/ textobj_move(textobj, to); } return NULL; }