Author Topic: Bug in Remove Layer function (2010)  (Read 4942 times)

0 Members and 1 Guest are viewing this topic.

Jennifer

  • Sr. Member
  • ****
  • Posts: 359
Bug in Remove Layer function (2010)
« on: March 28, 2015, 05:20:55 PM »
While trying to isolate a problem with layers and groups, I ran into what appears to be a bug in the Remove Layer function.

Given: Two or more layers defined.

Bug: If I select any layer and click the Remove button, Visio will warn me that removing the layer will also delete all shapes belonging to it. If I then remove another layer without exiting the Layer Properties dialog, I get no warning whether that layer has assigned shapes or not. If I exit the dialog and reopen it, I am again prompted on the first Remove operation, but not on subsequent ones.

PS: I just realized that this should have been posted to the Bugs section. Please feel free to move it. Sorry.
« Last Edit: March 28, 2015, 05:37:59 PM by Jennifer »
Using Visio 2010 Pro on Win XP Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3455
  • Ideas Visio-lized into solutions
Re: Bug in Remove Layer function (2010)
« Reply #1 on: March 28, 2015, 08:18:18 PM »
Behavior is repeatable in V2007.

Wapperdude
Visio 2019 Pro

Jennifer

  • Sr. Member
  • ****
  • Posts: 359
Re: Bug in Remove Layer function (2010)
« Reply #2 on: March 29, 2015, 12:26:58 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)
Using Visio 2010 Pro on Win XP Pro

Nikolay

  • Hero Member
  • *****
  • Posts: 783
    • UnmanagedVisio
Re: Bug in Remove Layer function (2010)
« Reply #3 on: March 29, 2015, 05:45:06 AM »
Hi Jennifer, but isn't this behavior logical? It might be intended actually..
That is, isn't saying that shapes are deleted along with layers once is enough - the subsequent messages won't say anything new, right?
Visio does not check if there actually are shapes on that layer being deleted, it just shows this message.
So what's the point of seeing the same message over and over again? Wouldn't seeing it once be enough?
« Last Edit: March 29, 2015, 05:48:48 AM by Nikolay »

Jennifer

  • Sr. Member
  • ****
  • Posts: 359
Re: Bug in Remove Layer function (2010)
« Reply #4 on: March 29, 2015, 11:40:32 AM »
Hi Jennifer, but isn't this behavior logical?
Not to me.

Quote
It might be intended actually.
Possibly, but then it's a design bug. Otherwise, it's an implementation bug. I would be far more concerned about a design bug.

Quote
That is, isn't saying that shapes are deleted along with layers once is enough
Absolutely not.

Quote
...the subsequent messages won't say anything new, right?
Wrong. They provide the same information, but about a different layer. This demands a second confirmation.

Quote
Visio does not check if there actually are shapes on that layer being deleted, it just shows this message.

Yes, I know. That's another design flaw, in my opinion.

Quote
So what's the point of seeing the same message over and over again? Wouldn't seeing it once be enough?
As I said, it's  the same message, but for a different layer.

Do you work for M$FT? You seem to think a lot like their engineers. :)
Using Visio 2010 Pro on Win XP Pro

aledlund

  • Hero Member
  • *****
  • Posts: 1412
Re: Bug in Remove Layer function (2010)
« Reply #5 on: March 29, 2015, 07:07:20 PM »
Jennifer,
Seems to not understand that this is a user supported forum and snarky remarks are out of place. Nikolay is one of the most talented developers that volunteers his time to help others on this site. Displeasure with results is not an unusual response when our attempts to be creative run into what we may feel to be unrealistic roadblocks, but as professionals we attempt to move beyond them and find a different path to our objectives.
Al Edlund

Jennifer

  • Sr. Member
  • ****
  • Posts: 359
Re: Bug in Remove Layer function (2010)
« Reply #6 on: March 29, 2015, 07:36:49 PM »
Hi Jennifer, but isn't this behavior logical? It might be intended actually..
That is, isn't saying that shapes are deleted along with layers once is enough - the subsequent messages won't say anything new, right?
Visio does not check if there actually are shapes on that layer being deleted, it just shows this message.
So what's the point of seeing the same message over and over again? Wouldn't seeing it once be enough?
Nikolay,

My apologies for my inappropriate comments. I do realize that you are trying to help. I was annoyed that while trying to get a work project finished, I had to spend several hours because of one M$FT programming stupidity after another. I went to a lot of trouble to provide complete information and a sample document. On the other thread, you offered incorrect "solutions" without, it seemed to me, even looking at the sample document I provided. So when you suggested that M$FT had actually done the right thing here, I wrote you off as another one of the crackpot posters one has to wade through to get useful information. Apparently, I was wrong. Again, my apologies. I will try to exercise better self control in the future.
Using Visio 2010 Pro on Win XP Pro

Nikolay

  • Hero Member
  • *****
  • Posts: 783
    • UnmanagedVisio
Re: Bug in Remove Layer function (2010)
« Reply #7 on: March 30, 2015, 03:24:11 AM »
Hi Jennifer,
No problem, I just wanted to show a "developer's point of view" to this.. I.e. what the developer who created this was probably thinking :D

In a better world, it probably would make sense to actually check if some shapes will be deleted along with the current layer, and warn user about this, and not just show (once) this generic message box informing that deletion of a layer also deletes shapes..
« Last Edit: March 30, 2015, 03:26:14 AM by Nikolay »

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3455
  • Ideas Visio-lized into solutions
Re: Bug in Remove Layer function (2010)
« Reply #8 on: March 30, 2015, 09:57:47 AM »
In the less this perfect world, the "minimalist" world, where checking for affected shapes means code and effort, a generic warning is issued.  OK.  Like Nikolay, I get the MS perspective, "User Beware" warning, not saying I agree with MS...  so keep the warning viewable...a simple compromise.     At least, one can always "undo". 

Not in front of my computer at the moment, but there's this vague recollection...something about deleting unassigned layers...Perhaps memory is confusing that with something else.

The more thorough solution is a bit of code...search a layer and identify shapes on it first, before deleting.

Wapperdude


Visio 2019 Pro