Fix filename suggestion of exported image
If the filename had a non-TTI extension it would not have been changed to PNG or GIF.
This commit is contained in:
@@ -190,11 +190,8 @@ void MainWindow::exportImage()
|
||||
else {
|
||||
// Image not exported before: suggest a filename with image extension
|
||||
// If page has flashing, suggest GIF
|
||||
exportFileName = m_curFile;
|
||||
if (m_textWidget->flashTiming() != 0)
|
||||
changeSuffixFromTTI(exportFileName, "gif");
|
||||
else
|
||||
changeSuffixFromTTI(exportFileName, "png");
|
||||
exportFileName = m_curFile.left(m_curFile.lastIndexOf('.'));
|
||||
exportFileName.append(m_textWidget->flashTiming() != 0 ? ".gif" : ".png");
|
||||
}
|
||||
|
||||
if (m_textWidget->flashTiming() != 0)
|
||||
|
||||
Reference in New Issue
Block a user