Commit 006eb79f authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix creating a cloned in LoD mode

Fixes T2217
BUG:361530
parent 39ce4e79
......@@ -118,9 +118,9 @@ public:
if (!copyFrames) {
if (m_data) {
m_data->prepareClone(rhs->currentData(), true);
m_data->prepareClone(rhs->currentNonLodData(), true);
} else {
m_data = toQShared(new KisPaintDeviceData(rhs->currentData(), true));
m_data = toQShared(new KisPaintDeviceData(rhs->currentNonLodData(), true));
}
} else {
if (m_data && !rhs->m_data) {
......@@ -141,6 +141,10 @@ public:
}
}
}
if (rhs->m_lodData) {
m_lodData.reset(new KisPaintDeviceData(rhs->m_lodData.data(), true));
}
}
void prepareClone(KisPaintDeviceSP src)
......
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