feedback actor: Fix a typo

The code for setting an anchor was comparing apples and oranges.
This was pointed out by coverity.

https://bugzilla.gnome.org/show_bug.cgi?id=752552
This commit is contained in:
Matthias Clasen 2015-07-20 17:39:09 -04:00
parent 1b22da0039
commit ad51c52b69

View File

@ -187,7 +187,7 @@ meta_feedback_actor_set_anchor (MetaFeedbackActor *self,
if (priv->anchor_x == anchor_x && priv->anchor_y == anchor_y) if (priv->anchor_x == anchor_x && priv->anchor_y == anchor_y)
return; return;
if (priv->anchor_x != anchor_y) if (priv->anchor_x != anchor_x)
{ {
priv->anchor_x = anchor_x; priv->anchor_x = anchor_x;
g_object_notify (G_OBJECT (self), "anchor-x"); g_object_notify (G_OBJECT (self), "anchor-x");