"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gmic-qt/src/FilterThread.cpp" between
gmic_2.8.1.tar.gz and gmic_2.8.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

FilterThread.cpp  (gmic_2.8.1):FilterThread.cpp  (gmic_2.8.2)
skipping to change at line 215 skipping to change at line 215
_errorMessage.clear(); _errorMessage.clear();
_failed = false; _failed = false;
QString fullCommandLine; QString fullCommandLine;
try { try {
fullCommandLine = QString::fromLocal8Bit(GmicQt::commandFromOutputMessageMod e(_messageMode)); fullCommandLine = QString::fromLocal8Bit(GmicQt::commandFromOutputMessageMod e(_messageMode));
GmicQt::appendWithSpace(fullCommandLine, _command); GmicQt::appendWithSpace(fullCommandLine, _command);
GmicQt::appendWithSpace(fullCommandLine, _arguments); GmicQt::appendWithSpace(fullCommandLine, _arguments);
_gmicAbort = false; _gmicAbort = false;
_gmicProgress = -1; _gmicProgress = -1;
if (_messageMode > GmicQt::Quiet) { if (_messageMode > GmicQt::Quiet) {
Logger::log(QString("\n[%1]%2 %3\n").arg(GmicQt::pluginCodeName()).arg(_lo gSuffix).arg(fullCommandLine)); Logger::log(fullCommandLine, _logSuffix, true);
} }
gmic gmicInstance(_environment.isEmpty() ? nullptr : QString("%1").arg(_envi ronment).toLocal8Bit().constData(), GmicStdLib::Array.constData(), true); gmic gmicInstance(_environment.isEmpty() ? nullptr : QString("%1").arg(_envi ronment).toLocal8Bit().constData(), GmicStdLib::Array.constData(), true);
gmicInstance.set_variable("_host", GmicQt::HostApplicationShortname, '='); gmicInstance.set_variable("_host", GmicQt::HostApplicationShortname, '=');
gmicInstance.set_variable("_tk", "qt", '='); gmicInstance.set_variable("_tk", "qt", '=');
gmicInstance.run(fullCommandLine.toLocal8Bit().constData(), *_images, *_imag eNames, &_gmicProgress, &_gmicAbort); gmicInstance.run(fullCommandLine.toLocal8Bit().constData(), *_images, *_imag eNames, &_gmicProgress, &_gmicAbort);
_gmicStatus = gmicInstance.status; _gmicStatus = gmicInstance.status;
} catch (gmic_exception & e) { } catch (gmic_exception & e) {
_images->assign(); _images->assign();
_imageNames->assign(); _imageNames->assign();
const char * message = e.what(); const char * message = e.what();
_errorMessage = message; _errorMessage = message;
if (_messageMode > GmicQt::Quiet) { if (_messageMode > GmicQt::Quiet) {
Logger::log(QString("\n[%1]./error/ When running command '%2', this error occurred:\n%3\n").arg(GmicQt::pluginCodeName()).arg(fullCommandLine).arg(message )); Logger::error(QString("When running command '%1', this error occurred:\n%2 ").arg(fullCommandLine).arg(message), true);
} }
_failed = true; _failed = true;
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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