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 f3facd50 authored by Agata Cacko's avatar Agata Cacko Committed by Dmitry Kazakov

Add asserts in libkis class FileLayer

I couldn't find any Coverity issues for this but maybe those functions
weren't available in the latest snapshot.
parent ff5bf00e
......@@ -82,12 +82,14 @@ void FileLayer::resetCache()
QString FileLayer::path() const
{
const KisFileLayer *file = qobject_cast<const KisFileLayer*>(this->node());
KIS_ASSERT(file);
return file->path();
}
QString FileLayer::scalingMethod() const
{
const KisFileLayer *file = qobject_cast<const KisFileLayer*>(this->node());
KIS_ASSERT_RECOVER_RETURN_VALUE(file, "None");
KisFileLayer::ScalingMethod sm = file->scalingMethod();
QString method = "None";
......
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