actor: Fix a pre-condition check in set_text_direction()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 1 Dec 2009 16:06:57 +0000 (16:06 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 1 Dec 2009 16:06:57 +0000 (16:06 +0000)
The check is failing because the condition should be:

  text_dir != CLUTTER_TEXT_DIRECTION_DEFAULT

clutter/clutter-actor.c

index d7ef7d8..fcab0b6 100644 (file)
@@ -9412,7 +9412,7 @@ clutter_actor_set_text_direction (ClutterActor         *self,
   ClutterActorPrivate *priv;
 
   g_return_if_fail (CLUTTER_IS_ACTOR (self));
-  g_return_if_fail (text_dir == CLUTTER_TEXT_DIRECTION_DEFAULT);
+  g_return_if_fail (text_dir != CLUTTER_TEXT_DIRECTION_DEFAULT);
 
   priv = self->priv;