Commit dc44b077 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Remove a spurious assert in layer cloning

Not having a layer style projection plane is a
normal situation when the style is empty

BUG:398788
parent 36861ec3
......@@ -262,8 +262,6 @@ KisLayer::KisLayer(const KisLayer& rhs)
if (rhs.m_d->layerStyle) {
m_d->layerStyle = rhs.m_d->layerStyle->clone();
KIS_SAFE_ASSERT_RECOVER_NOOP(rhs.m_d->layerStyleProjectionPlane);
if (rhs.m_d->layerStyleProjectionPlane) {
m_d->layerStyleProjectionPlane = toQShared(
new KisLayerStyleProjectionPlane(*rhs.m_d->layerStyleProjectionPlane,
......
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