This commit is contained in:
Herwig Birke
2018-03-29 17:38:46 +02:00
parent b10630c4dc
commit f442815c7e
7 changed files with 160 additions and 29 deletions
+8 -2
View File
@@ -585,9 +585,15 @@ void cDocumentWriter::writeTextImageFormat(QTextImageFormat* lpTextImageFormat,
name = m_szPath + "/" + name;
QString path = name.left(name.lastIndexOf("/"));
QDir dir;
QFileInfo fileInfo(name);
if(fileInfo.suffix().isEmpty())
name.append(".png");
QDir dir;
dir.mkpath(path);
pixmap.save(name);
bool ret = pixmap.save(name);
if(!ret)
return;
}
}