"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libs/libkis/Document.cpp" between
krita-5.1.3.tar.xz and krita-5.1.4.tar.xz

About: Krita is a painting program offering art tools for everyone (concept art, texture and matte painters, illustrations and comics).

Document.cpp  (krita-5.1.3.tar.xz):Document.cpp  (krita-5.1.4.tar.xz)
skipping to change at line 569 skipping to change at line 569
bool retval = d->document->save(true, 0); bool retval = d->document->save(true, 0);
d->document->waitForSavingToComplete(); d->document->waitForSavingToComplete();
return retval; return retval;
} }
bool Document::saveAs(const QString &filename) bool Document::saveAs(const QString &filename)
{ {
if (!d->document) return false; if (!d->document) return false;
setFileName(filename);
const QString outputFormatString = KisMimeDatabase::mimeTypeForFile(filename , false); const QString outputFormatString = KisMimeDatabase::mimeTypeForFile(filename , false);
const QByteArray outputFormat = outputFormatString.toLatin1(); const QByteArray outputFormat = outputFormatString.toLatin1();
QString oldPath = d->document->path(); QString oldPath = d->document->path();
d->document->setPath(filename); d->document->setPath(filename);
bool retval = d->document->saveAs(filename, outputFormat, true); bool retval = d->document->saveAs(filename, outputFormat, true);
d->document->waitForSavingToComplete(); d->document->waitForSavingToComplete();
d->document->setPath(oldPath); d->document->setPath(oldPath);
return retval; return retval;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)