GtkStyleSet: Prevent from possible underflow.

This commit is contained in:
Carlos Garnacho 2010-10-26 00:16:22 +02:00
parent 51b742044a
commit c88e3bfc0c

View File

@ -309,7 +309,12 @@ compare_property (gconstpointer p1,
PropertyNode *key = (PropertyNode *) p1;
PropertyNode *node = (PropertyNode *) p2;
return (int) key->property_quark - node->property_quark;
if (key->property_quark > node->property_quark)
return 1;
else if (key->property_quark < node->property_quark)
return -1;
return 0;
}
static PropertyNode *