You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/09/24 19:11:45 UTC
svn commit: r818550 -
/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java
Author: tvolkert
Date: Thu Sep 24 17:11:37 2009
New Revision: 818550
URL: http://svn.apache.org/viewvc?rev=818550&view=rev
Log:
Fixed small bug in setAutomationID()
Modified:
incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java
Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java?rev=818550&r1=818549&r2=818550&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java Thu Sep 24 17:11:37 2009
@@ -677,9 +677,11 @@
this.automationID = automationID;
if (getDisplay() != null) {
- if (automationID == null) {
+ if (previousAutomationID != null) {
Automation.remove(previousAutomationID);
- } else {
+ }
+
+ if (automationID != null) {
Automation.add(automationID, this);
}
}