diff --git a/src/solvespace.cpp b/src/solvespace.cpp index 398cba0..e1dfc4a 100644 --- a/src/solvespace.cpp +++ b/src/solvespace.cpp @@ -427,8 +427,11 @@ void SolveSpaceUI::UpdateWindowTitle(void) { static std::string Extension(const std::string &filename) { int dot = filename.rfind('.'); - if(dot >= 0) - return filename.substr(dot + 1, filename.length()); + if(dot >= 0) { + std::string ext = filename.substr(dot + 1, filename.length()); + std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower); + return ext; + } return ""; }