Commit 31ed09f8 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix a crash when copy/paste a shape layer

BUG:458115
parent 8a1e5920
Pipeline #232993 passed with stage
in 91 minutes and 23 seconds
......@@ -37,7 +37,9 @@
KisShapeLayerCanvasBase::KisShapeLayerCanvasBase(KisShapeLayer *parent, KisImageWSP image)
: KoCanvasBase(0)
, m_viewConverter(new KisImageViewConverter(image))
, m_viewConverter(image ?
static_cast<KisClonableViewConverter*>(new KisImageViewConverter(image)) :
static_cast<KisClonableViewConverter*>(new KisDetachedShapesViewConverter(1.0, 1.0)))
, m_shapeManager(new KoShapeManager(this))
, m_selectedShapesProxy(new KoSelectedShapesProxySimple(m_shapeManager.data()))
{
......
Supports Markdown
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