Took some time out to address a bug that had been cropping up occasionally (usually when I'm just playing around with the Editor as opposed to coding). The bug stemmed from the changes I made recently to the Brush code, and it was just a simple case of moving a line of code to prevent the program reading erroneous data off the edge of the map.
This also pushed me in the direction of another bug in the Brush code, which was supposed to prevent masked tiles from being plotted. Essentially, there are two sets of Brush checks, depending on the Brush's handle point (top left or bottom right). In this instance, I'd neglected to copy the working code for the top-left handling to the bottom-right handling. Tsk tsk!
Rounded off today's session by tweaking the Map Set I/O routine to automatically check the map size and resize the project automatically (when loading a single map, the Editor prompts the user to check if they want to resize as it may affect the other Layers - when loading a Map Set, all Layers are being resized and loaded, and thus no need for a prompt). Finished up by adding Map Set Load/Save icons to the toolbar, purely because I was sick of using the menu. :)
