Commit 32b37a82 authored by Cyrille Berger's avatar Cyrille Berger
Browse files

forward port: don't crash when trying to access a non existent filter

CCBUG:136461

svn path=/trunk/koffice/; revision=600105
parent 6116b6dd
......@@ -192,7 +192,12 @@ QObject* KritaCoreModule::loadBrush(const QString& filename)
QObject* KritaCoreModule::filter(const QString& filtername)
{
KisFilter* filter = KisFilterRegistry::instance()->get(filtername).data();
return new Filter(this, filter);
if(filter)
{
return new Filter(this, filter);
} else {
return 0;
}
}
QObject* KritaCoreModule::createImage(int width, int height, const QString& colorspace, const QString& name)
......
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