You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/08/31 21:18:41 UTC
svn commit: r991299 - in /pivot/trunk/wtk/src/org/apache/pivot/wtk:
ImageView.java text/ImageNode.java
Author: gbrown
Date: Tue Aug 31 19:18:40 2010
New Revision: 991299
URL: http://svn.apache.org/viewvc?rev=991299&view=rev
Log:
Fix typo that causes setImage() to fail.
Modified:
pivot/trunk/wtk/src/org/apache/pivot/wtk/ImageView.java
pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/ImageView.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/ImageView.java?rev=991299&r1=991298&r2=991299&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/ImageView.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/ImageView.java Tue Aug 31 19:18:40 2010
@@ -267,8 +267,8 @@ public class ImageView extends Component
* @see #setImage(URL)
*/
public final void setImage(String imageName) {
- if (image == null) {
- throw new IllegalArgumentException("image is null.");
+ if (imageName == null) {
+ throw new IllegalArgumentException("imageName is null.");
}
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java?rev=991299&r1=991298&r2=991299&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java Tue Aug 31 19:18:40 2010
@@ -113,8 +113,8 @@ public class ImageNode extends Node {
* @see #setImage(URL)
*/
public void setImage(String imageName) {
- if (image == null) {
- throw new IllegalArgumentException("image is null.");
+ if (imageName == null) {
+ throw new IllegalArgumentException("imageName is null.");
}
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();