Bug #51617 Funny (!) behaviour in list of EER diagrams when Name includes an ampersand
Submitted: 1 Mar 2010 17:36 Modified: 10 May 2010 16:03
Reporter: Craig Fowler Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.16-2 OS:Linux (Debian Squeeze 32-bit/Ubuntu 9.10 .deb package)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: UI

[1 Mar 2010 17:36] Craig Fowler
Description:
This is a minor UI/display bug - if a diagram contains an ampersand character in its name then the list of EER diagrams misbehaves and shows an incorrect label against the affected diagram.

From what I can tell, on loading the model it shows the label "Add Diagram" but on clicking/selecting that diagram and then moving the selection to another diagram it displays the newly-selected-diagram's label.

The bug doesn't seem to have any knock-on effects.  When the diagram is opened (as noted in the screenshot) the tab shows the correct name.

Obvious workaround:  Don't use ampersands in your diagram names.

How to repeat:
Description above might not make too much sense, will attach a screenshot that should clear things up.

The affected diagram in the screenshot is the first-on-the-left and its name SHOULD be "Games & Library" but its label in the UI has become "Security and Logging" when that diagram is selected.
[1 Mar 2010 17:39] Craig Fowler
Screenshot.  Unexpectedly, as I took the screenshot and WB lost focus, the label reverted to "Add diagram"

Attachment: workbench-ui-bug.png (image/png, text), 25.59 KiB.

[1 May 2010 2:33] Alfredo Kojima
Fixed
[6 May 2010 9:51] Johannes Taxacher
fix confirmed in repository
[10 May 2010 16:03] Tony Bedford
An entry has been added to the 5.2.21 changelog:

If a diagram name contained an ampersand, the name was not displayed correctly in the Model Overview.