projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo: 'suposidly' -> 'supposedly'.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
importer.cpp
diff --git
a/synfig-core/trunk/src/synfig/importer.cpp
b/synfig-core/trunk/src/synfig/importer.cpp
index
524eea3
..
120079f
100644
(file)
--- a/
synfig-core/trunk/src/synfig/importer.cpp
+++ b/
synfig-core/trunk/src/synfig/importer.cpp
@@
-97,13
+97,14
@@
Importer::open(const String &filename)
return (*__open_importers)[filename];
}
return (*__open_importers)[filename];
}
- if(fi
nd(filename.begin(),filename.end(),'.')==filename.end()
)
+ if(fi
lename_extension(filename) == ""
)
{
synfig::error(_("Importer::open(): Couldn't find extension"));
return 0;
}
{
synfig::error(_("Importer::open(): Couldn't find extension"));
return 0;
}
- String ext=string(filename.begin()+filename.find_last_of('.')+1,filename.end());
+ String ext(filename_extension(filename));
+ if (ext.size()) ext = ext.substr(1); // skip initial '.'
std::transform(ext.begin(),ext.end(),ext.begin(),&::tolower);
std::transform(ext.begin(),ext.end(),ext.begin(),&::tolower);