Index: trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/SelectionManager.java	(revision 1002)
+++ trunk/src/org/openstreetmap/josm/gui/SelectionManager.java	(revision 1003)
@@ -230,15 +230,16 @@
 		
 		if (aspectRatio) {
-			// keep the aspect ration by shrinking the rectangle
+			/* Keep the aspect ratio by growing the rectangle; the
+			 * rectangle is always under the cursor. */
 			double aspectRatio = (double)nc.getWidth()/nc.getHeight();
-			if ((double)w/h > aspectRatio) {
+			if ((double)w/h < aspectRatio) {
 				int neww = (int)(h*aspectRatio);
 				if (mousePos.x < mousePosStart.x)
-					x += w-neww;
+					x += w - neww;
 				w = neww;
 			} else {
 				int newh = (int)(w/aspectRatio);
 				if (mousePos.y < mousePosStart.y)
-					y += h-newh;
+					y += h - newh;
 				h = newh;
 			}
