Project

General

Profile

Bug #4804

copy/paste relation changes width from Auto to 1

Added by Oliver Soong about 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
general
Target version:
Start date:
02/17/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4804

Description

Drag 2 actors to the canvas and join them with a relation. Copy the actors and relation and immediately paste it. The relation width changes from Auto to 1. This is only a problem when the relation joins 2 multiports, but that will happen when a composite actor has a multiport.

This could be a ptolemy problem.

CopySetsRelationWidthTo1.xml (3.1 KB) CopySetsRelationWidthTo1.xml Christopher Brooks, 02/17/2010 03:34 PM

History

#1 Updated by Christopher Brooks about 9 years ago

I can replicate this in Ptolemy

1. Right click on the relation and select "Configure". Note that the width is
set to "Auto"
2. Select the two composite actors (that have multiports) and the relation.
3. Copy and Paste
4. Right click on the new relation, select "Configure". Note that the width
is set to "1".

#2 Updated by Oliver Soong about 9 years ago

I'm not 100% sure this is the same bug, but if I delete the actors and relation, then undo the change, the relation width again gets set to 1.

#3 Updated by Christopher Brooks almost 9 years ago

Fixed!
The problem was that the RelationWidthChanges filter would set the width to 1
instead of the width remaining Auto (-1). This was because the pasted MoML
had no _createdBy attribute. This change might not be entirely safe, but it
seems safer than the alternative, which is that copy and paste changes
the width from Auto to 1.

#4 Updated by Redmine Admin almost 6 years ago

Original Bugzilla ID was 4804

Also available in: Atom PDF