Correct a bug when setting tight_limits property.
Jean-baptiste Silvy [Wed, 11 Oct 2006 13:21:45 +0000 (13:21 +0000)]
scilab/modules/graphics/src/c/getHandleProperty/set_tight_limits_property.c

index 18af646..453dcd3 100644 (file)
@@ -31,11 +31,11 @@ int set_tight_limits_property( sciPointObj * pobj, int stackPointer, int valueTy
 
   if ( isStringParamEqual( stackPointer, "on" ) )
   {
-    pSUBWIN_FEATURE (pobj)->tight_limits = FALSE;
+    pSUBWIN_FEATURE (pobj)->tight_limits = TRUE ;
   }
   else if ( isStringParamEqual( stackPointer, "off" ) )
   {
-    pSUBWIN_FEATURE (pobj)->tight_limits = TRUE;
+    pSUBWIN_FEATURE (pobj)->tight_limits = FALSE ;
   }
   else
   {