Commit 7b147c93 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix threading issue when loading KisGeneratorLayer

We shouldn't call the same function from both, GUI thread and a worker
thread. It may lead to concurrent writes to the same image area, which
is not something we are allowed to do

BUG:420322,419301
parent 3efcd3e6
......@@ -74,7 +74,7 @@ void KisGeneratorLayer::setFilter(KisFilterConfigurationSP filterConfig)
{
KisSelectionBasedLayer::setFilter(filterConfig);
m_d->preparedRect = QRect();
update();
slotDelayedStaticUpdate();
}
void KisGeneratorLayer::slotDelayedStaticUpdate()
......
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