Commit 6731573f authored by Halla Rempt's avatar Halla Rempt

File layers also cannot be transformed.

parent 8d14d91f
......@@ -256,8 +256,8 @@ void KisToolTransform::beginActionImpl(KoPointerEvent *event, bool usePrimaryAct
return;
}
if (currentNode()->inherits("KisShapeLayer")) {
QString message = i18n("The transform tool cannot transform a vector layer.");
if (currentNode()->inherits("KisShapeLayer") || currentNode()->inherits("KisFileLayer")) {
QString message = i18n("The transform tool cannot transform a vector or file layer. Use a transform mask instead.");
KisCanvas2 * kiscanvas = static_cast<KisCanvas2*>(canvas());
kiscanvas->viewManager()->showFloatingMessage(message, koIcon("object-locked"));
event->ignore();
......
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