Skip to content

Commit

Permalink
Fix errors when a TLStyleSheet doesn't have all properties fill
Browse files Browse the repository at this point in the history
  • Loading branch information
LesageYann committed May 16, 2022
1 parent c0de9df commit fa42a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Telescope-Cytoscape/TLStyleSheet.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TLStyleSheet >> cytoscapeConnectionStyleFor: aConnection [
(#head -> #'target-arrow-').
(#middle -> #'mid-target-arrow-')}
do: [ :substyleAndCytoStyle |
(self copyWithout: #(#shape)) + (self > substyleAndCytoStyle key)
(self copySafeWithout: #(#shape)) + (self > substyleAndCytoStyle key)
fillStyleDictionary: styleDictionary
with:
{((substyleAndCytoStyle value , #color) -> #color).
Expand Down Expand Up @@ -79,7 +79,7 @@ TLStyleSheet >> cytoscapeGenericConnectionStyle [
(#head -> #'target-arrow-').
(#middle -> #'mid-target-arrow-')}
do: [ :substyleAndCytoStyle |
(self > substyleAndCytoStyle key)
(self copySafeWithout: #(#shape)) + (self > substyleAndCytoStyle key)
fillStyleDictionary: styleDictionary
with:
{((substyleAndCytoStyle value , #color) -> #color).
Expand Down

0 comments on commit fa42a2e

Please sign in to comment.