Skip to content

Commit

Permalink
#16271: Fixing that saving workflow fails when using decimal comma (,) (
Browse files Browse the repository at this point in the history
#16274)

* Saving workflow fails

* Fix solution build file references (#16269)

* Remove Gitter references (#16270)

* Add serialisation compatibility of TimeSpan and DateTime  (#16205)

Co-authored-by: Mike Alhayek <[email protected]>
Co-authored-by: Hisham Bin Ateya <[email protected]>

* Update Azure.Identity 1.11.4 (#16286)

* Add rounding.

---------

Co-authored-by: Zoltán Lehóczky <[email protected]>
Co-authored-by: Tony Han <[email protected]>
Co-authored-by: Mike Alhayek <[email protected]>
Co-authored-by: Hisham Bin Ateya <[email protected]>
  • Loading branch information
5 people authored Jun 13, 2024
1 parent 2cf1408 commit 2a59841
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Compression;
using System.Linq;
using System.Text.Json;
Expand Down Expand Up @@ -475,8 +476,8 @@ from activityId in currentActivities.Keys
foreach (var activityState in activities)
{
var activity = currentActivities[activityState["id"].ToString()];
activity.X = (int)Convert.ToDecimal(activityState["x"].ToString());
activity.Y = (int)Convert.ToDecimal(activityState["y"].ToString());
activity.X = (int)Math.Round(Convert.ToDecimal(activityState["x"].ToString(), CultureInfo.InvariantCulture), 0);
activity.Y = (int)Math.Round(Convert.ToDecimal(activityState["y"].ToString(), CultureInfo.InvariantCulture), 0);
activity.IsStart = Convert.ToBoolean(activityState["isStart"].ToString());
}

Expand Down

0 comments on commit 2a59841

Please sign in to comment.