**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
SYNFIG_LAYER_INIT(FilledRect);
SYNFIG_LAYER_SET_NAME(FilledRect,"rectangle");
SYNFIG_LAYER_SET_LOCAL_NAME(FilledRect,N_("Rectangle"));
-SYNFIG_LAYER_SET_CATEGORY(FilledRect,N_("Geometry"));
+SYNFIG_LAYER_SET_CATEGORY(FilledRect,N_("Example"));
SYNFIG_LAYER_SET_VERSION(FilledRect,"0.1");
SYNFIG_LAYER_SET_CVS_ID(FilledRect,"$Id$");
//the bounds of the rectangle
Point p[2] = {point1,point2};
- if((p[0][0] > p[1][0]) ^ wpp < 0)
+ if((p[0][0] > p[1][0]) ^ (wpp < 0))
{
swap(p[0][0],p[1][0]);
}
- if((p[0][1] > p[1][1]) ^ hpp < 0)
+ if((p[0][1] > p[1][1]) ^ (hpp < 0))
{
swap(p[0][1],p[1][1]);
}