mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Fix creating two ImageView if we specify "file" and "icon" for <image> widget
This commit is contained in:
parent
43ca34bd35
commit
ca252f9f02
@ -506,8 +506,7 @@ Widget* WidgetLoader::convertXmlElementToWidget(const TiXmlElement* elem, Widget
|
||||
throw base::Exception("Error loading %s file", file);
|
||||
}
|
||||
}
|
||||
|
||||
if (icon) {
|
||||
else if (icon) {
|
||||
SkinPartPtr part = SkinTheme::instance()->getPartById(std::string(icon));
|
||||
if (part) {
|
||||
widget = new ImageView(part->bitmapRef(0), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user