Browse Source

Fix node attrs not being copied to Cluster

pull/823/head
Bruno Meneguello 3 years ago
parent
commit
d3ee0b66bc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      diagrams/__init__.py

+ 2
- 1
diagrams/__init__.py View File

@@ -351,7 +351,8 @@ class Node(_Cluster):
# Set attributes.
for k, v in self._default_graph_attrs.items():
self.dot.graph_attr[k] = v
self.dot.graph_attr['tooltip'] = self._attrs['tooltip']
for k, v in self._attrs.items():
self.dot.graph_attr[k] = v

icon = self._load_icon()
if icon:


Loading…
Cancel
Save