Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #24 from speckleworks/elementId
Browse files Browse the repository at this point in the history
fixes #23
  • Loading branch information
teocomi authored Mar 25, 2020
2 parents 89fea2d + b438aea commit 0ab2e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpeckleElementsClasses/Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,14 @@ public Level topLevel
[JsonIgnore]
public double? topOffset
{
get => (Properties != null && Properties.ContainsKey("topOffset")) ? ((double)Properties["topOffset"]) : 0;
get => (Properties != null && Properties.ContainsKey("topOffset")) ? ((double?)Properties["topOffset"]) : null;
set => Properties["topOffset"] = value;
}

[JsonIgnore]
public double? bottomOffset
{
get => (Properties != null && Properties.ContainsKey("bottomOffset")) ? ((double)Properties["bottomOffset"]) : 0;
get => (Properties != null && Properties.ContainsKey("bottomOffset")) ? ((double?)Properties["bottomOffset"]) : null;
set => Properties["bottomOffset"] = value;
}

Expand Down

0 comments on commit 0ab2e39

Please sign in to comment.