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

Add assert in FileLayer::FileLayer

CID 248930
parent 97129f7b
......@@ -25,6 +25,7 @@ FileLayer::FileLayer(KisImageSP image, const QString name, const QString baseNam
: Node(image, new KisFileLayer(image, name, OPACITY_OPAQUE_U8), parent)
{
KisFileLayer *file = dynamic_cast<KisFileLayer*>(this->node().data());
KIS_ASSERT(file);
KisFileLayer::ScalingMethod sm = KisFileLayer::None;
if (scalingMethod=="ToImageSize") {
sm= KisFileLayer::ToImageSize;
......
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