Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 71a20a2c authored by Agata Cacko's avatar Agata Cacko Committed by Dmitry Kazakov

Add assert in FileLayer::resetCache

It cannot be NULL, but the code doesn't know about it,
so it needs an assert to signalize it.
CID 248720
parent 2186701d
......@@ -73,6 +73,7 @@ void FileLayer::setProperties(QString fileName, QString scalingMethod)
void FileLayer::resetCache()
{
KisFileLayer *file = dynamic_cast<KisFileLayer*>(this->node().data());
KIS_ASSERT_RECOVER_RETURN(file);
file->resetCache();
}
......
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