Bugs item #1795369, was opened at 2007-09-15 05:47 Message generated for change (Comment added) made by jleben You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1795369...
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: Closed Resolution: Duplicate Priority: 5 Private: No Submitted By: marius schebella (mariusschebella) Assigned to: Nobody/Anonymous (nobody) Summary: red border GOP
Initial Comment: hey, when I have a subpatch that contains no element in it, but is a GOP, then I don't see the red GOP border. that does not seem to be a problem. BUT... when I use this empty subpatch and create an object in it via message command, then that red border suddenly is visible in the parent patch. see attached file. marius.
----------------------------------------------------------------------
Comment By: Jakob Leben (jleben) Date: 2008-04-28 21:38
Message: Logged In: YES user_id=2064182 Originator: NO
The reason, I think, why red border doesn't show up when no elements present is: The same GOP technique is used to show the contents of a subpatch that contains data structures - for example an audio array. In this case you really don't want the red border to be drawn over the graphical representation of data structures, do you? So, red border gets drawn only when there are elements which are at the same time not data structures. This I wouldn't consider a bug then. What's your opinion?
Now, why it gets drawn when an object is created via message command: the red border gets drawn in the garray_vis function (g_array.c). This function apparently gets called every time an object is created, exactly because that's the point when the red border might need to be drawn. I think the reason why when you have the subpatch open the GOP on the parent patch is covered over with a grey square is just to avoid the problem of having to visualize GOP on the parent and the subpatch window at the same time but differently (for example: on the parent patch without the red border). But the code obviously doesn't handle the case when a GOP's window is closed and when you create an object it calls garray_vis which draws the red square. Therefore we should add some checking inside garray_vis.
This is my idea. Maybe I'll try to solve the problem or I hope this text will be of help to whoever else.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2008-04-28 18:09
Message: Logged In: YES user_id=27104 Originator: NO
Try this link:
http://sourceforge.net/tracker/index.php?func=detail&aid=1351274&gro...
----------------------------------------------------------------------
Comment By: marius schebella (mariusschebella) Date: 2008-04-28 17:19
Message: Logged In: YES user_id=1856112 Originator: YES
it's the same, but #1351274 does not show up when I browse the bugs. wrong settings? strange.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2008-04-28 16:43
Message: Logged In: YES user_id=27104 Originator: NO
This is the same as bug #1351274
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2008-04-28 16:42
Message: Logged In: YES user_id=27104 Originator: NO
This is the same as bug #1351274
http://sourceforge.net/tracker/index.php?func=browse&group_id=55736&...
----------------------------------------------------------------------
Comment By: stffn (stffn) Date: 2007-10-16 15:58
Message: Logged In: YES user_id=1658640 Originator: NO
This seam very similar to the report #1351274 called "pd 0.39-1 GOP bounding box doesn't appear if no objects".
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1795369...