Fix converting single layer to paint layers. It was doing a flatten, but flatten abourts if there is only one layer. BUG:365660
Description
Description
Details
Details
- Auditors
dkazakov - Committed
langkamp Jul 28 2016, 6:40 PM - Parents
- R37:16b7db53755a: Ignore delta 0 wheel events on OSX
- Branches
- Unknown
- Tags
Comment Actions
Hi, @langkamp!
This patch breaks converting shape layers with layer styles into paint layers: layer styles are lost. That was initial bug that was fixed with this 'if' branch. Probably, just 'if' can be changed to handle layers style case? Like:
KisLayer *srcLayer = dynamic_cast<KisLayer*>(source.data());
if (srcLayer && srcLayer->layerStyle()) {
image->flattenLayer(srcLayer); return;
}