From: <aki...@us...> - 2006-06-25 11:21:43
|
Revision: 179 Author: akirschbaum Date: 2006-06-25 04:21:38 -0700 (Sun, 25 Jun 2006) ViewCVS: http://svn.sourceforge.net/gridarta/?rev=179&view=rev Log Message: ----------- Fix typo in variable name; it sometimes did not delete all object from a resized map. Modified Paths: -------------- trunk/crossfire/src/cfeditor/map/DefaultMapModel.java Modified: trunk/crossfire/src/cfeditor/map/DefaultMapModel.java =================================================================== --- trunk/crossfire/src/cfeditor/map/DefaultMapModel.java 2006-06-25 11:05:32 UTC (rev 178) +++ trunk/crossfire/src/cfeditor/map/DefaultMapModel.java 2006-06-25 11:21:38 UTC (rev 179) @@ -1064,7 +1064,7 @@ // (and yes, there is an area getting sweeped twice - and yes it could // be optimized you smartass - but I don't care!) for (int y = newSize.height; y < mapSize.height; y++) { - for (int x = 0; x < mapSize.height; x++) { + for (int x = 0; x < mapSize.width; x++) { // for every map square: delete all arches on it final Iterator it = getArchObjectsDeleteMapArch(x, y, false, false); while (it.hasNext()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |