Skip to content

Commit

Permalink
Merge pull request WL-Amigo#14 from YukihoAA/master
Browse files Browse the repository at this point in the history
Fixed issue WL-Amigo#3
  • Loading branch information
DeadSix27 committed Jul 17, 2017
2 parents 32c27b4 + bd112c6 commit 8749757
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ int main(int argc, char** argv) {
if (outputFileName == "(auto)") {
outputFileName = cmdInputFile.getValue();
int tailDot = outputFileName.find_last_of('.');
outputFileName.erase(tailDot, outputFileName.length());
if(tailDot != std::string::npos)
outputFileName.erase(tailDot, outputFileName.length());
outputFileName = outputFileName + "(" + cmdMode.getValue() + ")";
std::string &mode = cmdMode.getValue();
if(mode.find("noise") != mode.npos){
Expand All @@ -168,6 +169,8 @@ int main(int argc, char** argv) {
}
outputFileName += ".png";
}
else if (outputFileName.find_last_of('.') == std::string::npos)
outputFileName += ".png";

enum W2XConvGPUMode gpu = W2XCONV_GPU_AUTO;

Expand Down

0 comments on commit 8749757

Please sign in to comment.