Commit 6a39d6c6 authored by Cyrille Berger's avatar Cyrille Berger
Browse files

even if the crash doesn't occur in trunk, you lose nothing at been cleaner

CCBUG:133124

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