diff -pur gimp-1.3-orig/app/tools/gimpeditselectiontool.c gimp-1.3-mine/app/tools/gimpeditselectiontool.c
--- gimp-1.3-orig/app/tools/gimpeditselectiontool.c	Fri Mar 28 13:23:28 2003
+++ gimp-1.3-mine/app/tools/gimpeditselectiontool.c	Mon Apr  7 00:38:42 2003
@@ -598,8 +600,8 @@ selection_transform_segs (GimpEditSelect
                                        &x, &y,
                                        FALSE);
 
-      dest_segs[i].x1 = x;
-      dest_segs[i].y1 = y;
+      dest_segs[i].x1 = CLAMP (x, -1, shell->disp_width);
+      dest_segs[i].y1 = CLAMP (y, -1, shell->disp_height);
 
       gimp_display_shell_transform_xy (shell,
                                        src_segs[i].x2 + edit_select->cumlx, 
@@ -607,8 +609,8 @@ selection_transform_segs (GimpEditSelect
                                        &x, &y,
                                        FALSE);
 
-      dest_segs[i].x2 = x;
-      dest_segs[i].y2 = y;
+      dest_segs[i].x2 = CLAMP (x, -1, shell->disp_width);
+      dest_segs[i].y2 = CLAMP (y, -1, shell->disp_height);
     }
 }
 
