From 3f11cd07d0b39fbd614ca1f8b0eb903dc5571fc8 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 3 Feb 2008 10:19:26 +0000 Subject: [PATCH] Recognise .GIF and .gIf (ie. upper and mixed case extensions) in the target file name. Previously only lower case extensions were recognised. git-svn-id: http://svn.voria.com/code@1561 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/tool/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 22f5a98..e595f42 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -962,7 +962,17 @@ int main(int argc, char *argv[]) if(Target::ext_book().count(ext)) target_name=Target::ext_book()[ext]; else - target_name=ext; + { + string lower_ext(ext); + + for(unsigned int i=0;i