Fixes U4-6336 GetCropUrl - preferFocalPoint is ignored if focal point is in the center

This commit is contained in:
Jeavon Leopold
2015-02-27 12:15:28 +00:00
parent ded1def8e2
commit bb04f83a49

View File

@@ -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(",");