Index: app/scale.c
===================================================================
RCS file: /cvs/gnome/gimp/app/Attic/scale.c,v
retrieving revision 1.19
diff -u -p -r1.19 scale.c
--- app/scale.c	16 Dec 2000 21:36:54 -0000	1.19
+++ app/scale.c	10 Jan 2003 14:46:51 -0000
@@ -118,7 +118,7 @@ change_scale (GDisplay *gdisp,
       if (scalesrc > 1)
 	scalesrc--;
       else
-	if (scaledest < 0x10)
+	if (scaledest < 0xff)
 	  scaledest++;
 	else
 	  return;
@@ -128,7 +128,7 @@ change_scale (GDisplay *gdisp,
       if (scaledest > 1)
 	scaledest--;
       else
-	if (scalesrc < 0x10)
+	if (scalesrc < 0xff)
 	  scalesrc++;
 	else
 	  return;
@@ -138,35 +138,32 @@ change_scale (GDisplay *gdisp,
       scalesrc = zoom_type % 100;
       if (scalesrc < 1)
 	scalesrc = 1;
-      else if (scalesrc > 0x10)
-	scalesrc = 0x10;
+      else if (scalesrc > 0xff)
+	scalesrc = 0xff;
+
       scaledest = zoom_type / 100;
       if (scaledest < 1)
 	scaledest = 1;
-      else if (scaledest > 0x10)
-	scaledest = 0x10;
+      else if (scaledest > 0xff)
+	scaledest = 0xff;
+
       break;
     }
 
   sx = (gdisp->gimage->width * scaledest) / scalesrc;
   sy = (gdisp->gimage->height * scaledest) / scalesrc;
 
-  /*  The slider value is a short, so make sure we are within its
-      range.  If we are trying to scale past it, then stop the scale  */
-  if (sx < 0xffff && sy < 0xffff)
-    {
-      gdisp->scale = (scaledest << 8) + scalesrc;
-
-      /*  set the offsets  */
-      offset_x *= ((double) scaledest / (double) scalesrc);
-      offset_y *= ((double) scaledest / (double) scalesrc);
-
-      gdisp->offset_x = (int) (offset_x - (gdisp->disp_width / 2));
-      gdisp->offset_y = (int) (offset_y - (gdisp->disp_height / 2));
-
-      /*  resize the image  */
-      resize_display (gdisp, allow_resize_windows, TRUE);
-    }
+  gdisp->scale = (scaledest << 8) + scalesrc;
+      
+  /*  set the offsets  */
+  offset_x *= ((double) scaledest / (double) scalesrc);
+  offset_y *= ((double) scaledest / (double) scalesrc);
+  
+  gdisp->offset_x = (int) (offset_x - (gdisp->disp_width / 2));
+  gdisp->offset_y = (int) (offset_y - (gdisp->disp_height / 2));
+  
+  /*  resize the image  */
+  resize_display (gdisp, allow_resize_windows, TRUE);
 }
 
 
