Update ImageCropDataSet.cs

If only one of the Left or Right values changed the HasFocalPoint function would return false but this should now return true if only one is altered
This commit is contained in:
Barry Bell
2018-08-21 21:07:54 +01:00
committed by GitHub
parent 2715d49630
commit f42862c42a

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);
}
}
}
}