Skip to content

Copy-pasting a node with implicit attributes may differ visually from the copied node #282

Open
@magjac

Description

@magjac

The reason is

  1. Only the copied node's explicit attributes are added to the pasted node
  2. The new node is inserted in the DOT source at the end of the graph where the implicit node attributes may be different than at the place in the DOT source where the copied node is defined.

Example

Initial DOT source

digraph {
    node [style=filled]
    node [fillcolor=red]
    
    a [color=blue]
    
    node [fillcolor=green shape=box]
    
}

Initial graph

image

DOT source after copy-paste of node a

digraph {
    node [style=filled]
    node [fillcolor=red]
    
    a [color=blue]
    
    node [fillcolor=green shape=box]
    
    n1 [ color=blue]
}

Graph after copy-paste of node a

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions