KisCloneLayer::KisCloneLayer(const KisCloneLayer& rhs) : KisLayer(rhs) , m_d(new Private()) { m_d->copyFrom = rhs.copyFrom(); m_d->type = rhs.copyType(); m_d->x = rhs.x(); m_d->y = rhs.y(); if (m_d->copyFrom) { m_d->copyFrom->registerClone(this); } }
KisCloneLayer::KisCloneLayer(const KisCloneLayer& rhs) : KisLayer(rhs) , KisIndirectPaintingSupport(rhs) , m_d(new Private()) { // XXX: Yah, booh! m_d->projection = new KisPaintDevice(*rhs.projection().data()); m_d->copyFrom = rhs.copyFrom(); m_d->type = rhs.copyType(); m_d->x = rhs.x(); m_d->y = rhs.y(); }