Fixes issue #1225.
Fixes a problem where Image.setUrlAndVisibleRect would not properly change
state if only the URL changed due to a typo.
Patch by: rdayal
Suggested by: Konstantin.Scheglov
Review by: knorton
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1186 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/Image.java b/user/src/com/google/gwt/user/client/ui/Image.java
index dcabc0e..7eecd43 100644
--- a/user/src/com/google/gwt/user/client/ui/Image.java
+++ b/user/src/com/google/gwt/user/client/ui/Image.java
@@ -224,7 +224,7 @@
public void setUrlAndVisibleRect(Image image, String url, int left,
int top, int width, int height) {
- if (!url.equals(url) || this.left != left || this.top != top
+ if (!this.url.equals(url) || this.left != left || this.top != top
|| this.width != width || this.height != height) {
this.url = url;