From 8951acabb7d6b64652d13fe7a3f982808403ce9a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 19 Dec 2008 12:58:50 +0000 Subject: [PATCH] Fixed warning & error --- include/osgSim/SphereSegment | 4 ++-- include/osgWidget/Widget | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/osgSim/SphereSegment b/include/osgSim/SphereSegment index 938fb7b8a..f087b44a7 100644 --- a/include/osgSim/SphereSegment +++ b/include/osgSim/SphereSegment @@ -71,8 +71,8 @@ public: SURFACE = 0x00000001, ///< Draw the specified area on the sphere's surface SPOKES = 0x00000002, ///< Draw the spokes from the sphere's centre to the surface's corners EDGELINE = 0x00000008, ///< Draw the line round the edge of the area on the sphere's surface - SIDES = 0x00000010, ///< Draw the planes from the sphere's centre to the edge of the sphere's surface - ALL = 0xffffffff ///< Draw every part of the sphere segment + SIDES = 0x00000010, ///< Draw the planes from the sphere's centre to the edge of the sphere's surface + ALL = 0x7fffffff ///< Draw every part of the sphere segment }; diff --git a/include/osgWidget/Widget b/include/osgWidget/Widget index a78a271b4..b541200a2 100644 --- a/include/osgWidget/Widget +++ b/include/osgWidget/Widget @@ -165,7 +165,7 @@ public: } void setDimensions(const Quad& q, point_type z = -1.0f) { - setDimensions(q[0], q[1], q[2], q[4], z); + setDimensions(q[0], q[1], q[2], q[3], z); } void setX(point_type x) {