From bb04f83a49dcb9e421fb826bc938dbdb13a8b57e Mon Sep 17 00:00:00 2001 From: Jeavon Leopold Date: Fri, 27 Feb 2015 12:15:28 +0000 Subject: [PATCH] Fixes U4-6336 GetCropUrl - preferFocalPoint is ignored if focal point is in the center --- src/Umbraco.Web/ImageCropperBaseExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/ImageCropperBaseExtensions.cs b/src/Umbraco.Web/ImageCropperBaseExtensions.cs index 12ea7b5e04..14ca6a68ba 100644 --- a/src/Umbraco.Web/ImageCropperBaseExtensions.cs +++ b/src/Umbraco.Web/ImageCropperBaseExtensions.cs @@ -88,7 +88,7 @@ namespace Umbraco.Web cropUrl.Append("?center=" + cropDataSet.FocalPoint.Top.ToString(CultureInfo.InvariantCulture) + "," + cropDataSet.FocalPoint.Left.ToString(CultureInfo.InvariantCulture)); cropUrl.Append("&mode=crop"); } - else if (crop != null && crop.Coordinates != null) + else if (crop != null && crop.Coordinates != null && preferFocalPoint == false) { cropUrl.Append("?crop="); cropUrl.Append(crop.Coordinates.X1.ToString(CultureInfo.InvariantCulture)).Append(",");