Skip to content

Commit 3f4ee56

Browse files
Fix check for limit. Fix htmlWidth visibility
1 parent 6bbc17d commit 3f4ee56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/com/cloudinary/Transformation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class Transformation {
1717
protected Map transformation;
1818
protected List<Map> transformations;
19-
private String htmlWidth;
19+
protected String htmlWidth;
2020
protected String htmlHeight;
2121

2222
// Warning: options will destructively updated!
@@ -105,7 +105,7 @@ public String generate(Map options) {
105105
String crop = (String) options.get("crop");
106106
String angle = StringUtils.join(Cloudinary.asArray(options.get("angle")), ".");
107107

108-
boolean no_html_sizes = has_layer || StringUtils.isNotBlank(angle) || "fit".equals(crop) || "limit".equals("crop");
108+
boolean no_html_sizes = has_layer || StringUtils.isNotBlank(angle) || "fit".equals(crop) || "limit".equals(crop);
109109
if (width != null && (Float.parseFloat(width) < 1 || no_html_sizes)) {
110110
this.htmlWidth = null;
111111
}

0 commit comments

Comments
 (0)