Commit ae3f80a1 authored by ColinTree's avatar ColinTree Committed by Evan W. Patton

Fix "any component" icon display error when using base64 icon

Fixed #1107
parent c212e344
...@@ -754,9 +754,7 @@ public abstract class MockComponent extends Composite implements PropertyChangeL ...@@ -754,9 +754,7 @@ public abstract class MockComponent extends Composite implements PropertyChangeL
public void collectTypesAndIcons(Map<String, String> typesAndIcons) { public void collectTypesAndIcons(Map<String, String> typesAndIcons) {
String name = getVisibleTypeName(); String name = getVisibleTypeName();
if (!isForm() && !typesAndIcons.containsKey(name)) { if (!isForm() && !typesAndIcons.containsKey(name)) {
String imageHTML = new ClippedImagePrototype(iconImage.getUrl(), iconImage.getOriginLeft(), typesAndIcons.put(name, iconImage.getElement().getString());
iconImage.getOriginTop(), ICON_IMAGE_WIDTH, ICON_IMAGE_HEIGHT).getHTML();
typesAndIcons.put(name, imageHTML);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment