Commit 2084830f authored by Boudewijn Rempt's avatar Boudewijn Rempt

Check pointer

parent 317114b1
......@@ -632,7 +632,9 @@ void KisPaintopBox::slotInputDeviceChanged(const KoInputDevice& inputDevice)
if (!preset) {
preset = rserver->resourceByName("Basic_tip_default");
}
setCurrentPaintop(preset->paintOp(), preset);
if (preset) {
setCurrentPaintop(preset->paintOp(), preset);
}
}
else {
setCurrentPaintop(toolData->paintOpID, toolData->preset);
......
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