static void menu_cb_removePoints (PointEditor me, EDITOR_ARGS_DIRECT) { Editor_save (me, U"Remove point(s)"); if (my startSelection == my endSelection) PointProcess_removePointNear ((PointProcess) my data, my startSelection); else PointProcess_removePointsBetween ((PointProcess) my data, my startSelection, my endSelection); FunctionEditor_redraw (me); Editor_broadcastDataChanged (me); }
static void menu_cb_removePoints (EDITOR_ARGS) { EDITOR_IAM (PointEditor); Editor_save (me, L"Remove point(s)"); if (my d_startSelection == my d_endSelection) PointProcess_removePointNear ((PointProcess) my data, my d_startSelection); else PointProcess_removePointsBetween ((PointProcess) my data, my d_startSelection, my d_endSelection); FunctionEditor_redraw (me); my broadcastDataChanged (); }