Commit 3cefbd43 authored by Halla Rempt's avatar Halla Rempt

Fix build on Windows with MSVC 2012

Still need to contact David Tschumperle about this
parent 1d5aa86b
......@@ -13204,8 +13204,9 @@ int main(int argc, char **argv) {
// Explicitely instanciate constructor for float-valued images.
template gmic::gmic(const char *const commands_line,
gmic_list<float>& images, gmic_list<char>& images_names,
const char *const custom_commands=0,
const bool include_default_commands=true,
float *const p_progress=0, int *const p_cancel=0);
const char *const custom_commands,
const bool include_default_commands,
float *const p_progress,
int *const p_cancel);
#endif // #ifdef gmic_main
#endif // #ifdef cimg_plugin
......@@ -67,7 +67,7 @@ void KisGmicCommand::redo()
QString gmicCmd = "-* 255 ";
gmicCmd.append(m_gmicCommandString);
dbgPlugins << m_gmicCommandString;
gmic(gmicCmd.toLocal8Bit().constData(), *m_images, images_names, m_customCommands, true);
gmic(gmicCmd.toLocal8Bit().constData(), *m_images, images_names, m_customCommands, true, 0, 0);
}
// Catch exception, if an error occured in the interpreter.
......
......@@ -337,7 +337,7 @@ bool KisGmicTests::filterWithGmic(KisGmicFilterSetting* gmicFilterSetting, const
{
QString gmicCmd = "-* 255 ";
gmicCmd.append(gmicFilterSetting->gmicCommand());
gmic(gmicCmd.toLocal8Bit().constData(), images, images_names);
gmic(gmicCmd.toLocal8Bit().constData(), images, images_names, true, 0, 0);
}
// Catch exception, if an error occured in the interpreter.
catch (gmic_exception &e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment