You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2010/06/18 11:26:27 UTC

svn commit: r955902 - /incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/beans/IWidget.java

Author: scottbw
Date: Fri Jun 18 09:26:27 2010
New Revision: 955902

URL: http://svn.apache.org/viewvc?rev=955902&view=rev
Log:
applied patch fixing default icon issue - see WOOKIE-144 . Thanks to Randy Watler for the patch.

Modified:
    incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/beans/IWidget.java

Modified: incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/beans/IWidget.java
URL: http://svn.apache.org/viewvc/incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/beans/IWidget.java?rev=955902&r1=955901&r2=955902&view=diff
==============================================================================
--- incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/beans/IWidget.java (original)
+++ incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/beans/IWidget.java Fri Jun 18 09:26:27 2010
@@ -430,7 +430,7 @@ public interface IWidget extends IBean
         {
         	IWidgetIcon[] icons = widget.getWidgetIcons().toArray(new IWidgetIcon[widget.getWidgetIcons().size()]);
             IWidgetIcon icon = (IWidgetIcon)LocalizationUtils.getLocalizedElement(icons, new String[]{locale});
-            return ((icon != null) ? icon.getSrc() : null);
+            return ((icon != null) ? icon.getSrc() : IW3CXMLConfiguration.DEFAULT_ICON_PATH);
         }
     }
 }