diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs b/src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs index a04edd4e613..c2ed70ae565 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Controllers/WorkflowTypeController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO.Compression; using System.Linq; using System.Text.Json; @@ -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()); }