From 9a80cb3689856f22d5b22fc7ca0c967f52528d1f Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Sat, 17 Oct 2009 20:05:18 +0000 Subject: [PATCH] Lost detection of SVG, so auto-scale stopped working; putting it back. --- src/tuxpaint.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 523fa815f..550c4077a 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -6695,6 +6695,13 @@ static void loadstamp_callback(SDL_Surface * screen, dotext - files[i].str + 1 + dirlen); stamp_data[stamp_group][num_stamps[stamp_group]]->stampname[dotext - files[i].str + 1 + dirlen] = '\0'; + + if (strcmp(ext, ".svg") == 0) { + stamp_data[stamp_group][num_stamps[stamp_group]]->is_svg = 1; + } else { + stamp_data[stamp_group][num_stamps[stamp_group]]->is_svg = 0; + } + num_stamps[stamp_group]++; } free(files[i].str);