Patches item #1654666, was opened at 2007-02-07 15:08 Message generated for change (Settings changed) made by millerpuckette You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1654666...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: None
Status: Pending Resolution: Fixed
Priority: 7 Private: No Submitted By: Matteo Sisti Sette (sistisette) Assigned to: Miller Puckette (millerpuckette) Summary: sending a cut message to an "invisible" subpatch makes crash
Initial Comment: If you have a subpatch, and send a "cut" message to it when it is not in "visible" state (i.e. it is not open), pd crashes.
This may happen when using scripting, if for example you send a "find foo" message followed by a "cut" message. If the object does not exist (and the subpatch hasn't been made explicitly visible), the cut message will reach the canvas when it is invisible.
See the attached example.
Tested on 0.40.2 on Windows XP.
Matteo Sisti Sette
matteo dot sistisette at email dot it
----------------------------------------------------------------------
Comment By: Miller Puckette (millerpuckette) Date: 2009-08-30 15:34
Message: fixed this slightly differently. (Hannes -- the vis/invis editor allocation and deallocation code is so complicated I'm afraid to try to enable "edits" on invis windows. Instead I want to write a "delete-in-rectangle" message optimized for scripting.
----------------------------------------------------------------------
Comment By: IOhannes m zmlnig (zmoelnig) Date: 2009-01-28 10:09
Message: raised priority since this bothers me right now!
miller: any chance to get selection/copy/paste/... to work with closed patches?
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1654666...
hi
SourceForge.net wrote:
speaking of this: scripting is not really fun if you have to depend on the visible layout of a patch. i guess "delete-in-rectangle" means that the user will have to specify the rectangle in pixels, which means that - it will break if the pixel-wise layout changes (e.g. because somebody uses another fontsize) - you cannot delete only one of overlapping objects
i suggest to use the object-id's instead, e.g. "delete 1" would delete the 2nd object, regardless where it is.
something like here: https://sourceforge.net/tracker/?func=detail&aid=2171733&group_id=55...
i cannot think of many uses for the select/deselect mechanism apart from deleting objects (right now, which doesn't mean so much), so i would vote for - delete <id> - deletall
fgmasdr IOhannes