Author: post
Date: 2012-01-15 14:18:26 +0100 (Sun, 15 Jan 2012)
New Revision: 4098
Modified:
trunk/librawstudio/rs-settings.c
Log:
When inserting items into a sorted list the order in which they are inserted
doesn't matter, silly you.
Modified: trunk/librawstudio/rs-settings.c
===================================================================
--- trunk/librawstudio/rs-settings.c 2012-01-15 13:14:57 UTC (rev 4097)
+++ trunk/librawstudio/rs-settings.c 2012-01-15 13:18:26 UTC (rev 4098)
@@ -399,7 +399,7 @@
GList *sorted = NULL;
for (i = 0; i < 16; i++)
{
- sorted = g_list_insert_sorted(sorted, ×pent[(i +
next_timing) & 15], compare_floats);
+ sorted = g_list_insert_sorted(sorted, ×pent[i],
compare_floats);
}
gfloat median = *(gfloat*)g_list_nth_data(sorted, 7);
g_list_free(sorted);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit