You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/07/26 19:29:41 UTC

svn commit: r1366095 - /pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ButtonDataRenderer.java

Author: smartini
Date: Thu Jul 26 17:29:41 2012
New Revision: 1366095

URL: http://svn.apache.org/viewvc?rev=1366095&view=rev
Log:
PIVOT-861, the fix for the smaller leak

Modified:
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ButtonDataRenderer.java

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ButtonDataRenderer.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ButtonDataRenderer.java?rev=1366095&r1=1366094&r2=1366095&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ButtonDataRenderer.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/content/ButtonDataRenderer.java Thu Jul 26 17:29:41 2012
@@ -19,8 +19,8 @@ package org.apache.pivot.wtk.content;
 import java.awt.Color;
 import java.awt.Font;
 
-import org.apache.pivot.wtk.Button;
 import org.apache.pivot.wtk.BoxPane;
+import org.apache.pivot.wtk.Button;
 import org.apache.pivot.wtk.HorizontalAlignment;
 import org.apache.pivot.wtk.ImageView;
 import org.apache.pivot.wtk.Label;
@@ -74,6 +74,7 @@ public class ButtonDataRenderer extends 
         // Update the image view
         if (icon == null) {
             imageView.setVisible(false);
+            imageView.setImage(icon);
         } else {
             imageView.setVisible(true);
             imageView.setImage(icon);