Commit f7d3ca46 authored by Stefan Sauer's avatar Stefan Sauer

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.
parent 1f023cd2
......@@ -1529,7 +1529,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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment