Commit 9a01a70c authored by Cyrille Berger's avatar Cyrille Berger
Browse files

and now be able to copy

CCBUG:133124

svn path=/trunk/koffice/; revision=599787
parent 6a39d6c6
......@@ -452,7 +452,7 @@ KisLayerSP KisSelectionManager::paste()
if (dlg->exec() == QDialog::Accepted)
layer->convertTo(img->colorSpace());
*/
if(!img->addLayer(KisLayerSP(layer), img->rootLayer(), img->activeLayer()))
if(!img->addLayer(KisLayerSP(layer), img->activeLayer()->parent(), img->activeLayer()))
{ return 0; }
return KisLayerSP(layer);
......
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