Bug #35438 Relationship connector positions on the canvas cannot be saved
Submitted: 19 Mar 2008 14:26 Modified: 19 Mar 2008 15:54
Reporter: Edmund Mierzwa Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.0.15 OSS RC OS:Windows (XP sp2)
Assigned to: CPU Architecture:Any
Tags: Relationship workbench

[19 Mar 2008 14:26] Edmund Mierzwa
Description:
The middleSegmentOffset property can be changed and saved but reopening the model will always return the middleSegmentOffset position back to zero. Grabbing the middleSegment grab bar on the canvas, with the mouse, and dragging it to a new position does not trigger the applications edit flag indicating a change to the model has been made. The same is true if you grab and drag a relationship caption. Changing this values from properties palette does trigger the application edit pending flag but for the middleSegmentOffset property the value is still never actually saved.

How to repeat:
Click once on the relationship connector that has caption "names describe events" to high lite it. Grab the middleSegment grab bar and move it over to a pleasing position between tables "event_name" &  "zone_usage" (about offset -100). Notice this does not cause application's title bar to show the customary asteric "junk.mwb*". The same is true if you drag the caption title to a new location. If you make these same changes from the properties palette by typing in an offset value for middleSegmentOffset and hitting enter the application's title bar now shows the customary asteric "junk.mwb*" even though the canvas does not refresh until you click on the connection. Save the model and then reopen it. Notice the relationship connector position is back to it's original unsaved location.

Suggested fix:
Any movement of a relationship or it's caption should trigger the app's Model-Has-Been-Modified flag and make the change persistent after a save.
[19 Mar 2008 14:27] Edmund Mierzwa
sample model

Attachment: junk.mwb (application/octet-stream, text), 6.39 KiB.

[19 Mar 2008 14:28] Edmund Mierzwa
screen placement quirk

Attachment: refresh.png (image/png, text), 105.47 KiB.

[19 Mar 2008 15:54] Johannes Taxacher
duplicate of http://bugs.mysql.com/bug.php?id=35397