Author: rwhitcomb Date: Fri Mar 19 22:33:29 2021 New Revision: 1887830 URL: http://svn.apache.org/viewvc?rev=1887830&view=rev Log: Simplification to Bounds.
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Bounds.java Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Bounds.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Bounds.java?rev=1887830&r1=1887829&r2=1887830&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/Bounds.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Bounds.java Fri Mar 19 22:33:29 2021 @@ -320,7 +320,7 @@ public final class Bounds implements Ser * @return A new enlarged bounds. */ public Bounds enlarge(final int amt) { - return new Bounds(x - amt, y - amt, width + (2 * amt), height + (2 * amt)); + return enlarge(amt, amt); } /**