Commit 1d026f71 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Set the right style object on the layer

parent c91c8bef
......@@ -465,8 +465,6 @@ void KisLayerManager::convertNodeToPaintLayer(KisNodeSP source)
gc.setCompositeOp(COMPOSITE_COPY);
QRect rc(srcDevice->extent());
gc.bitBlt(rc.topLeft(), srcDevice, rc);
qDebug() << "Doing complex copying";
} else {
clone = new KisPaintDevice(*srcDevice);
}
......@@ -904,7 +902,7 @@ void KisLayerManager::layerStyle()
KisDlgLayerStyle dlg(style);
if (dlg.exec() == QDialog::Accepted) {
layer->setLayerStyle(new KisPSDLayerStyle(*style));
layer->setLayerStyle(new KisPSDLayerStyle(*dlg.style()));
}
delete style;
......
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