diff --git a/app/scanner/dialog_exportimagefile.cpp b/app/scanner/dialog_exportimagefile.cpp index 1d8b6a6d..e5bead0c 100644 --- a/app/scanner/dialog_exportimagefile.cpp +++ b/app/scanner/dialog_exportimagefile.cpp @@ -149,7 +149,12 @@ void Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param) if (nullptr != img) { char fileName[512]; - sprintf(fileName, "%s%03d", getStdString(p->m_destName).c_str(), index); + if(p->m_srcFiles.size() > 1) + { + sprintf(fileName, "%s%03d", getStdString(p->m_destName).c_str(), index); + }else + sprintf(fileName, "%s", getStdString(p->m_destName).c_str()); + ++index; QString saveFileName = p->m_destPath + QString(StdStringToUtf8(fileName).c_str()) + p->m_destExt;