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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user