harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r530768 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
Date Fri, 20 Apr 2007 12:31:43 GMT
Author: apetrenko
Date: Fri Apr 20 05:31:42 2007
New Revision: 530768

URL: http://svn.apache.org/viewvc?view=rev&rev=530768
Log:
Additional patch for HARMONY-3448 "[classlib][swing] Synth public classes are not implemented"
Unneeded Dimension object creation has been removed.

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java?view=diff&rev=530768&r1=530767&r2=530768
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
Fri Apr 20 05:31:42 2007
@@ -225,10 +225,7 @@
 
         if (!Utilities.isEmptyString(text)) {
             Dimension stringDim = Utilities.getStringSize(text, fm);
-            Dimension size = new Dimension(stringDim.width, Utilities.getTextY(
-                    fm, new Rectangle(stringDim)));
-
-            return new Rectangle(size);
+            return new Rectangle(stringDim.width, Utilities.getTextY(fm, new Rectangle(stringDim)));
         }
 
         return new Rectangle();



Mime
View raw message