Commit a32257df authored by Boudewijn Rempt's avatar Boudewijn Rempt

Check pointer before dereferencing

BUG:415998
parent d8dce334
......@@ -292,7 +292,7 @@ void KisTransformUtils::transformDevice(const ToolTransformArgs &config,
worker.prepareTransform();
worker.setTransformedCage(config.transfPoints());
worker.run();
} else if (config.mode() == ToolTransformArgs::LIQUIFY) {
} else if (config.mode() == ToolTransformArgs::LIQUIFY && config.liquifyWorker()) {
KoUpdaterPtr updater = helper->updater();
//FIXME:
Q_UNUSED(updater);
......
......@@ -249,7 +249,8 @@ void TransformStrokeStrategy::doStrokeCallback(KisStrokeJobData *data)
}
emit sigPreviewDeviceReady(previewDevice);
} else if(td) {
}
else if (td) {
if (td->destination == TransformData::PAINT_DEVICE) {
QRect oldExtent = td->node->extent();
KisPaintDeviceSP device = td->node->paintDevice();
......
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