App::Document: fix file extension case sensitive problem

This commit is contained in:
Zheng, Lei
2019-07-17 13:08:25 +08:00
committed by wmayer
parent 9223f08b48
commit 9b3351399b

View File

@@ -2138,9 +2138,9 @@ static std::string checkFileName(const char *file) {
const char *ext = strrchr(file,'.');
if(!ext || !boost::iequals(ext+1,"fcstd")) {
if(ext && ext[1] == 0)
fn += "fcstd";
fn += "FCStd";
else
fn += ".fcstd";
fn += ".FCStd";
}
}
return fn;