Merge pull request #2869 from Bazmech/temp-U4-11594

U4-11594 HasFocalPoint in ImageCropDataSet does not return correct value
This commit is contained in:
Sebastiaan Janssen
2018-08-26 16:44:19 +02:00
committed by GitHub

View File

@@ -66,7 +66,7 @@ namespace Umbraco.Web.Models
public bool HasFocalPoint()
{
return FocalPoint != null && FocalPoint.Left != 0.5m && FocalPoint.Top != 0.5m;
return FocalPoint != null && (FocalPoint.Left != 0.5m || FocalPoint.Top != 0.5m);
}
public bool HasCrop(string alias)
@@ -153,4 +153,4 @@ namespace Umbraco.Web.Models
return !Equals(left, right);
}
}
}
}