ICNSTranslator: Fix bug #15726
Change-Id: Ie1db106f40b1f4214e1798d3a8cbd22193bf4bfa
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
|
||||
static int compareTypes(const void *a, const void *b)
|
||||
{
|
||||
icns_type_t typeItemA = *((icns_type_t*)(*((icns_type_t*)a)));
|
||||
icns_type_t typeItemB = *((icns_type_t*)(*((icns_type_t*)b)));
|
||||
|
||||
icns_icon_info_t imageInfoA = icns_get_image_info_for_type(typeItemA);
|
||||
icns_icon_info_t imageInfoB = icns_get_image_info_for_type(typeItemB);
|
||||
icns_type_t **typeItemA = (icns_type_t**)a;
|
||||
icns_type_t **typeItemB = (icns_type_t**)b;
|
||||
|
||||
icns_icon_info_t imageInfoA = icns_get_image_info_for_type(**typeItemA);
|
||||
icns_icon_info_t imageInfoB = icns_get_image_info_for_type(**typeItemB);
|
||||
|
||||
return imageInfoB.iconWidth - imageInfoA.iconWidth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user