Fix findBestIcon()

This patch fixes the issue described here:

https://bugzilla.novell.com/show_bug.cgi?id=371974
This commit is contained in:
Vladimir Nadvornik authored and Carlos R. Mafra committed 2009-08-21 01:54:26 +02:00
1 parent 95a576bd62
commit e113ec10c9
1 file changed
+1 -1
+1 -1
View File
@@ -390,7 +390,7 @@ static unsigned long *findBestIcon(unsigned long *data, unsigned long items)
* results in better overall aesthetics -Dan */
wanted = wPreferences.icon_size * wPreferences.icon_size;
for (icon = NULL, distance = LONG_MAX, i = 0L; i < items - 1;) {
for (icon = NULL, distance = wanted, i = 0L; i < items - 1;) {
size = data[i] * data[i + 1];
if (size == 0)
break;