Skip to content

Commit

Permalink
regression fix
Browse files Browse the repository at this point in the history
should resolve the issue with regressions in GraphLayoutTests
  • Loading branch information
ivaylo-matov committed May 4, 2024
1 parent 18b58f1 commit f5a75f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/DynamoCore/Graph/Annotations/AnnotationModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -715,14 +715,12 @@ protected override void DeserializeCore(XmlElement element, SaveContext context)
this.InitialTop = helper.ReadDouble("InitialTop", DoubleValue);
this.InitialHeight = helper.ReadDouble("InitialHeight", DoubleValue);
this.IsSelected = helper.ReadBoolean(nameof(IsSelected), false);
this.IsExpanded = helper.ReadBoolean(nameof(IsExpanded), false);
this.IsExpanded = helper.ReadBoolean(nameof(IsExpanded), true);

if (IsSelected)
DynamoSelection.Instance.Selection.Add(this);
else
DynamoSelection.Instance.Selection.Remove(this);


DynamoSelection.Instance.Selection.Remove(this);

//Deserialize Selected models
if (element.HasChildNodes)
Expand Down

0 comments on commit f5a75f5

Please sign in to comment.