gtkscale: fix bogus compare func

The GtkScaleMark values are gdouble, a simple a-b compare func would fail for
values with the same integer value. This breaks the sorting and causes random
marker label placement.
This commit is contained in:
Stefan Sauer
2012-01-09 18:16:53 +01:00
parent c40ea99866
commit fe23dc2c10

View File

@@ -1487,7 +1487,7 @@ compare_marks (gpointer a, gpointer b)
ma = a; mb = b;
return (gint) (ma->value - mb->value);
return (ma->value > mb->value) ? 1 : ((ma->value == mb->value) ? 0 : -1);
}
/**