Mercurial > projects > dwt-addons
diff dwtx/jface/util/Geometry.d @ 70:46a6e0e6ccd4
Merge with d-fied sources of 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 01:36:46 +0200 |
parents | da5ad8eedf5d |
children | c3583c6ec027 |
line wrap: on
line diff
--- a/dwtx/jface/util/Geometry.d Mon May 19 13:41:06 2008 +0200 +++ b/dwtx/jface/util/Geometry.d Thu May 22 01:36:46 2008 +0200 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2006 IBM Corporation and others. + * Copyright (c) 2004, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -745,13 +745,13 @@ * be the upper-left corner of the rectangle. * * @param rectangle rectangle to modify - * @param newSize new size of the rectangle + * @param newLocation new location of the rectangle * * @since 3.0 */ - public static void setLocation(Rectangle rectangle, Point newSize) { - rectangle.width = newSize.x; - rectangle.height = newSize.y; + public static void setLocation(Rectangle rectangle, Point newLocation) { + rectangle.x = newLocation.x; + rectangle.y = newLocation.y; } /**