Avoid warnings from g++ 4.3.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 25 Jan 2008 15:50:35 +0000 (15:50 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 25 Jan 2008 15:50:35 +0000 (15:50 +0000)
git-svn-id: http://svn.voria.com/code@1484 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

index 33b6273..31f36ee 100644 (file)
@@ -559,14 +559,14 @@ CanvasInterface::import(const synfig::String &filename, bool /*copy*/)
                        {
                                x[0]=size[0];
                                x[1]=size[0]/w*h;
-                               if(size[0]<0 ^ size[1]<0)
+                               if((size[0]<0) ^ (size[1]<0))
                                        x[1]=-x[1];
                        }
                        else
                        {
                                x[1]=size[1];
                                x[0]=size[1]/h*w;
-                               if(size[0]<0 ^ size[1]<0)
+                               if((size[0]<0) ^ (size[1]<0))
                                        x[0]=-x[0];
                        }
                        if(!layer->set_param("tl",ValueBase(-x/2)))