GtkProgressBar: trivial conditional optimisation

I'd hope the compiler would realise this for us, but let's be explicit.
This commit is contained in:
Daniel Boles 2016-12-03 02:35:27 +00:00
parent a793f8f243
commit 42d7f81649

View File

@ -445,8 +445,7 @@ update_fraction_classes (GtkProgressBar *pbar)
{ {
if (priv->fraction <= 0.0) if (priv->fraction <= 0.0)
empty = TRUE; empty = TRUE;
else if (priv->fraction >= 1.0)
if (priv->fraction >= 1.0)
full = TRUE; full = TRUE;
} }