Commit 2b0c5372 authored by Sven Langkamp's avatar Sven Langkamp

Fix converting single layer to paint layers. It was doing a flatten, but...

Fix converting single layer to paint layers. It was doing a flatten, but flatten abourts if there is only one layer.
BUG:365660
parent 16b7db53
...@@ -350,7 +350,7 @@ void KisLayerManager::convertNodeToPaintLayer(KisNodeSP source) ...@@ -350,7 +350,7 @@ void KisLayerManager::convertNodeToPaintLayer(KisNodeSP source)
if (!image) return; if (!image) return;
KisLayer *srcLayer = dynamic_cast<KisLayer*>(source.data()); KisGroupLayer *srcLayer = dynamic_cast<KisGroupLayer*>(source.data());
if (srcLayer) { if (srcLayer) {
image->flattenLayer(srcLayer); image->flattenLayer(srcLayer);
return; return;
......
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