Don't load blank-named template during slideshow

This commit is contained in:
Bill Kendrick 2023-04-19 21:56:46 -07:00
parent 2140d2e17b
commit 9b80c0d688
2 changed files with 9 additions and 2 deletions

View file

@ -51,6 +51,11 @@ https://tuxpaint.org/
(shows when certain features are enabled; not just disabled)
Bill Kendrick <bill@newbreedsoftware.com>
* Bug Fixes:
----------
* Don't try to load a blank-named template during slideshow playback.
Bill Kendrick <bill@newbreedsoftware.com>
* Localization Updates:
---------------------
* Chinese (Simplified) translation

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
June 14, 2002 - April 12, 2023
June 14, 2002 - April 19, 2023
*/
#include "platform.h"
@ -20030,8 +20030,10 @@ static void play_slideshow(int *selected, int num_selected, char *dirname,
if (starter_flipped)
flip_starter();
}
else
else if (template_id[0] != '\0')
{
load_template(template_id);
}
}
/* "Back" button: */