emile: make sure given boolean are really boolean.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 17 Mar 2015 07:50:51 +0000 (08:50 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 17 Mar 2015 08:58:20 +0000 (09:58 +0100)
src/lib/emile/emile_image.c

index 6ae3106..0838b26 100644 (file)
@@ -2213,6 +2213,7 @@ _emile_image_bind(Emile_Image *ei,
    if (opts)
      {
         ei->opts = *opts;
+        ei->opts.orientation = !!ei->opts.orientation;
         ei->load_opts = 1;
      }