Visio Guy

Visio Discussions => Visio Bugs (er...Issues) => Topic started by: Jennifer on March 29, 2015, 12:30:50 AM

Title: Bug with Layers & Groups (2010)
Post by: Jennifer on March 29, 2015, 12:30:50 AM
Start with a new Visio document. Mine is General, Basic, US Units, but I doubt that matters.
The square & triangle will be visible, but not selectable.

I've attached a document with this condition.
Title: Re: Bug with Layers & Groups (2010)
Post by: wapperdude on March 29, 2015, 01:05:45 AM
That behavior is repeatable in V2007.

Wapperdude
Title: Re: Bug with Layers & Groups (2010)
Post by: Jennifer on March 29, 2015, 05:27:24 AM
Well, I guess that's both good and bad news. The good news is that at least M$FT didn't make Visio 2010 any worse that 2007 (at least based on this bug). The bad news is that they don't appear that serious about fixing even obvious bugs. (sigh)
Title: Re: Bug with Layers & Groups (2010)
Post by: Jennifer on March 29, 2015, 06:01:34 AM
I just discovered that this bug is even worse than I thought. The "cure" for the phantom objects in Layer1 is:
So there are actually two bugs. The second is leaving an object selected when the layer it is assigned to is made invisible.
Title: Re: Bug with Layers & Groups (2010)
Post by: Nikolay on March 29, 2015, 11:15:38 AM
Hi Jennifer, I think you may have "Preserve group member layers" checkbox set (see the screenshot)

In Visio, sub-shapes in a group can be on layers, different from the group's layer.
This is a feature; probably this is what you see, as far as I can tell - the Square and Triangle were left on Layer1 (visible) when you assigned their group shape Layer2.
The checkbox I mentioned controls this; if you want the layer for all group members also be changed when you change layer for a group, you should not set it.
Title: Re: Bug with Layers & Groups (2010)
Post by: Jennifer on March 29, 2015, 04:29:21 PM
Quote from: Nikolay on March 29, 2015, 11:15:38 AM
Hi Jennifer, I think you may have "Preserve group member layers" checkbox set (see the screenshot)
I wasn't aware of that setting. I assign objects to layers using an icon on the Quick Access Toolbar, so I never see that dialog.

I have now checked that setting. It is not set as far as I can tell.

Quote
In Visio, sub-shapes in a group can be on layers, different from the group's layer.
This is a feature; probably this is what you see, as far as I can tell - the Square and Triangle were left on Layer1 (visible) when you assigned their group shape Layer2.
I attached the file to my original post. Did you look at it to see if that setting was on or off?

Quote
The checkbox I mentioned controls this; if you want the layer for all group members also be changed when you change layer for a group, you should not set it.
I'm not so sure. To test your claim, I created 2 new files. In both, I replicated the procedure from my original post. In #1, I made sure that that setting was not checked. In the other, I made sure that it was, The results are the same.

So, I resubmit my bug report. Someone at M$FT forgot to implement that setting and that has been true for at least 2 releases.
Title: Re: Bug with Layers & Groups (2010)
Post by: Nikolay on March 30, 2015, 09:12:02 AM
I've checked the drawing from the last post. For me, the file look like this (see the screenshot)..

I have highlighted everything that is on layer 2 with gray, everything that is on layer 1 is white.
Shape "A" (Square) on your drawing is both on Layer1 and Layer2 - that's why it does not disappear when you hide Layer2.

What happens now when you make Layer2 invisible? All shapes which are only on Layer2 become invisible.
So on the shapes which exist not only on Layer2, but also on Layer1 are left on the page.

This is just to clarify what's going on here.