From: <aki...@us...> - 2007-01-10 21:06:05
|
Revision: 1540 http://svn.sourceforge.net/gridarta/?rev=1540&view=rev Author: akirschbaum Date: 2007-01-10 13:05:55 -0800 (Wed, 10 Jan 2007) Log Message: ----------- Properly clear attribute cache and fire square changed event when the object text changes. Modified Paths: -------------- trunk/src/app/net/sf/gridarta/gameobject/GameObject.java Modified: trunk/src/app/net/sf/gridarta/gameobject/GameObject.java =================================================================== --- trunk/src/app/net/sf/gridarta/gameobject/GameObject.java 2007-01-10 08:28:24 UTC (rev 1539) +++ trunk/src/app/net/sf/gridarta/gameobject/GameObject.java 2007-01-10 21:05:55 UTC (rev 1540) @@ -923,6 +923,8 @@ if (!line.endsWith("\n")) { objectText.append('\n'); } + clearAttributeCache(); + squareChanged(); } /** Clears the object text of this GameObject. */ @@ -932,6 +934,7 @@ } objectText.delete(0, objectText.length()); + clearAttributeCache(); squareChanged(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |