Fixed double dot on file names when saving images.

This commit is contained in:
leo 2015-01-14 22:38:07 +00:00
parent 51674eeec7
commit 474c9058ba

View file

@ -1669,7 +1669,7 @@ void Project::SaveImage()
{ {
Options.FileName = mFileName; Options.FileName = mFileName;
QString Extension = QFileInfo(Options.FileName).suffix(); QString Extension = QFileInfo(Options.FileName).suffix();
Options.FileName = Options.FileName.left(Options.FileName.length() - Extension.length()); Options.FileName = Options.FileName.left(Options.FileName.length() - Extension.length() - 1);
} }
else else
Options.FileName = QLatin1String("image"); Options.FileName = QLatin1String("image");