Commit 90725e06 authored by Halla Rempt's avatar Halla Rempt
Browse files

BUG:340414 Fix crash when using paintops that need a node

We need to set the actual current node of the active image, not the
node selected for the previous preset.

CCMAIL:mohit.bits2011@gmail.com
parent 32c54a3c
......@@ -409,7 +409,7 @@ void KisPaintopBox::setCurrentPaintop(const KoID& paintop, KisPaintOpPresetSP pr
}
m_paintOpPresetMap[m_resourceProvider->currentPreset()->paintOp()] = m_resourceProvider->currentPreset();
m_tabletToolMap[m_currTabletToolID].preset = m_resourceProvider->currentPreset();
m_tabletToolMap[m_currTabletToolID].preset = m_resourceProvider->currentPreset();
m_tabletToolMap[m_currTabletToolID].paintOpID = m_resourceProvider->currentPreset()->paintOp();
}
......@@ -986,7 +986,7 @@ void KisPaintopBox::slotReloadPreset()
KisPaintOpPresetSP preset = rserver->resourceByName(m_resourceProvider->currentPreset()->name());
if (preset) {
preset->load();
preset->settings()->setNode(m_resourceProvider->currentPreset()->settings()->node());
preset->settings()->setNode(m_resourceProvider->currentNode());
preset->settings()->setOptionsWidget(m_optionWidget);
m_optionWidget->setConfiguration(preset->settings());
m_presetsPopup->setPaintOpSettingsWidget(m_optionWidget);
......
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