Added unit tests for CropWebProcessor and ImageCropperTemplateCoreExtensions.

This commit is contained in:
Andy Butland
2021-08-11 17:18:23 +02:00
parent c5361ec54e
commit 902984f977
4 changed files with 275 additions and 3 deletions

View File

@@ -324,7 +324,7 @@ namespace Umbraco.Extensions
ImageUrlGenerationOptions options;
if (cropDataSet != null && (imageCropMode == ImageCropMode.Crop || imageCropMode == null))
{
var crop = cropDataSet.GetCrop(cropAlias);
ImageCropperValue.ImageCropperCrop crop = cropDataSet.GetCrop(cropAlias);
// If a crop was specified, but not found, return null
if (crop == null && !string.IsNullOrWhiteSpace(cropAlias))