Fixed crash bug if undoing or redoing a mirror/flip when NOT usign a Starter.
This commit is contained in:
parent
e9309f102b
commit
72d839e3be
1 changed files with 25 additions and 19 deletions
|
|
@ -21,12 +21,12 @@
|
|||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
June 14, 2002 - September 23, 2004
|
||||
June 14, 2002 - September 28, 2004
|
||||
*/
|
||||
|
||||
|
||||
#define VER_VERSION "0.9.14"
|
||||
#define VER_DATE "2004-09-23"
|
||||
#define VER_DATE "2004-09-28"
|
||||
|
||||
|
||||
/* #define DEBUG */
|
||||
|
|
@ -7177,6 +7177,8 @@ void do_undo(void)
|
|||
SDL_BlitSurface(undo_bufs[cur_undo], NULL, canvas, NULL);
|
||||
|
||||
|
||||
if (img_starter != NULL)
|
||||
{
|
||||
if (undo_starters[cur_undo] == UNDO_STARTER_MIRRORED)
|
||||
{
|
||||
starter_mirrored = !starter_mirrored;
|
||||
|
|
@ -7187,6 +7189,7 @@ void do_undo(void)
|
|||
starter_flipped = !starter_flipped;
|
||||
flip_starter();
|
||||
}
|
||||
}
|
||||
|
||||
update_canvas(0, 0, (WINDOW_WIDTH - 96), (48 * 7) + 40 + HEIGHTOFFSET);
|
||||
|
||||
|
|
@ -7224,6 +7227,8 @@ void do_undo(void)
|
|||
void do_redo(void)
|
||||
{
|
||||
if (cur_undo != newest_undo)
|
||||
{
|
||||
if (img_starter != NULL)
|
||||
{
|
||||
if (undo_starters[cur_undo] == UNDO_STARTER_MIRRORED)
|
||||
{
|
||||
|
|
@ -7235,6 +7240,7 @@ void do_redo(void)
|
|||
starter_flipped = !starter_flipped;
|
||||
flip_starter();
|
||||
}
|
||||
}
|
||||
|
||||
cur_undo = (cur_undo + 1) % NUM_UNDO_BUFS;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue